Skip to content

octo-topi/blog-staging

Repository files navigation

Staging area for OCTO blog posts

OCTO blog use Google Docs and custom scripts.

Process

Write post

Write your post, bending your markdown usage as follows.

Unsupported

The following items are ignored:

  • alignment
  • justification
  • color, size, font
  • code blocks using fences "```"
  • code blocks using backtick "foo"

Supported

Natively in markdown

The following elements from markdown are supported:

  • bold
  • italic
  • strikethrough
  • headings
  • bullet lists
  • tables
  • horizontal line
Using hack
Quotes

Quotes are not supported natively. You need to get the following in GoogleDoc to get it working.

> myquote
NEWLINE
NEWLINE

But the ">" character is stripped at import, so here is the workaround :

  • escape the ">" character using the backslash ""
  • after import on GoogleDoc, add MANUALLY 2 newlines.
\> myquote

Lint

Checks:

  • formatting
  • dead links
npm run lint

If exit code <> 0, run

npm run lint:fix

And adjust rules in configuration

Ask for review

Take feedback into account

Merge the pull request

Replace internal links (if any)

In order to test links before PR is merged, links targets the pull request itself.

After merging the pull request :

  • replace links to PR by links to main branch
  • run lint again to check for dead links
  • push-force on main

Import in Google

In Google drive, create a new "Doc" document using blog template.

Name it using preview.md.

Generate HTML version.

npm run generate-html

Open the generated HTML document in Firefox.

Paste in Google Docs.

Fix typos

Check warnings and fix back the markdown version.

Fix unsupported markdown features

Quotes: add 2 line returns after quote body.

Code blocks: copy/paste unformatted (Ctrl/Shift/V).

Add metadata

Select "Blog OCTO" entry menu

Choose:

  • main category = Software Engineering
  • secondary category = Craft

Add preview from preview.md

Save.

Click on preview, check the URL in pop-up match the one expected in preview.md.

Check the rendering browsing URL:

  • look for typo;
  • check quotes and code blocks are correctly rendered.

Publish

Publish. Check URL and preview rendering in welcome page. Have a cup of tea and relax, you've done well.

Monitor

About

Make blog.octo.com post review easier

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published