OCTO blog use Google Docs and custom scripts.
Create a branch and add a folder.
Create the skeleton.
mdkir assets
touch posts.md
touch preview.md
Push the branch and open a pull request.
Add under development
tag.
Write the TL;DR in preview.md
, to be displayed on posts page.
Write your post in post.md
; you'll have to bend your markdown usage as follows.
The following items are ignored:
- alignment
- justification
- color, size, font
- code blocks using fences "```"
- code blocks using backtick "
foo
"
The following elements from markdown are supported:
- bold
- italic
- strikethrough
- headings
- bullet lists
- tables
- horizontal line
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
To use emphasis in a deep-nested section
#### a fourth-depth section
<!-- markdownlint-disable-next-line MD036 -->
**This is important**
Checks:
- formatting
- dead links
npm run lint
If exit code <> 0, run
And adjust rules in configuration
Add ready to review
tag.
npm run lint:fix
Add to publish
tag.
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
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.
Check warnings and fix back the markdown version.
Quotes: add 2 line returns after quote body.
Code blocks: copy/paste unformatted (Ctrl/Shift/V).
Replace inline code (in green) by italics (Ctrl i).
This is the dreaded `malloc` function.
Links containing several underscore _
does not contains the leading underscore anymore, add it again.
Do you like [snake_case_syntax](https://en.wikipedia.org/wiki/Snake_case)
If they still render unproperly, delete the underscore and try again.
Bold cannot contain inline code, it is rendered incorrectly between double underscore __foo__
TL;DR: __pg_stat_activity__ view shows executing queries, __pg_stat_statements__ shows executed queries, queries can be logged
Insert / Image / Upload from computer, choose for assets Add "Alt text"
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.
Check URL and preview rendering in home page.
Add published
tag to the pull request.
Notify :
- OCTO by Mattermost
- everyone else by Twitter.
Have a cup of tea and relax, you've done well !
Don't mix french:
- use
language
instead oflangage
- use
connection
instead ofconnexion
Semicolon is never preceded by a space, and always followed by a space.
I'm done: that's a good thing.
Question mark are never preceded by a space.
Are your for real ?