Skip to content

Commit

Permalink
build: pre-build script
Browse files Browse the repository at this point in the history
The pre-build scripts does the following:
1. Downloads the documentation from electron/electron and data/blog
   from electron/electronjs.org
2. Moves the files to the right folders based on the contents of
   `docs-reorg.json`
3. Add frontmatter to each file
4. Fixes internal links and multiline image titles
5. Generates the sidebar using the folder structure

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Ref: Solves parts of #2
  • Loading branch information
molant committed Apr 20, 2021
1 parent 03b66ad commit 8dbbed4
Show file tree
Hide file tree
Showing 96 changed files with 2,587 additions and 9,664 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
node_modules
.docusaurus
.DS_Store
content/
docs/
blog/
package-lock.json
3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"singleQuote": true
}
17 changes: 17 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "pwa-node",
"request": "launch",
"name": "Launch Program",
"skipFiles": ["<node_internals>/**"],
"program": "${workspaceFolder}/scripts/pre-build.js",
"console": "integratedTerminal",
"cwd": "${workspaceFolder}"
}
]
}
40 changes: 0 additions & 40 deletions blog/12-week-cadence.md

This file was deleted.

97 changes: 0 additions & 97 deletions blog/2015-whats-new-in-electron.md

This file was deleted.

35 changes: 0 additions & 35 deletions blog/2020-season-of-docs.md

This file was deleted.

38 changes: 0 additions & 38 deletions blog/accessibility-tools.md

This file was deleted.

124 changes: 0 additions & 124 deletions blog/api-docs-json-schema.md

This file was deleted.

Loading

0 comments on commit 8dbbed4

Please sign in to comment.