electronjs.org-new/create-electron-documentation
Erick Zhao 60b4a4537b
chore: update repo name (#305)
2022-11-22 15:25:57 -08:00
..
templates fix: show titles in docs 2021-05-12 12:53:11 -07:00
index.js fix: bin info in `create-electron-documentation` 2021-04-29 10:49:02 -07:00
package.json chore: update repo name (#305) 2022-11-22 15:25:57 -08:00
readme.md chore: update `electron/electron` trunk name (#39) 2021-06-02 12:22:04 -07:00

readme.md

create-electron-documentation

The goal of this package is to help developers create the scaffolding for Electron examples faster.

How to use it?

Electron's documentation is under the /docs folder of the main repo. You will have to clone it locally and call the following script from one of the folders under /docs (e.g.: /docs/tutorial):

npm create electron-documentation

The script will prompt you to enter the documentation page title and description:

> npm create electron-documentation
> Title:
> my-new-doc-page
> Description:
> A description for my new doc page

Once executed, the following files will be created:

  • A markdown file the-provided-title.md in the folder you invoked the script
  • A new folder under /docs/fiddles/the-provided-title with a minimum fiddle example for your documentation following good practices.

At this point, feel free to modify any of them or move the fiddle somewhere else (but remember to update the reference in the markdown file!).

Thanks for contributing to Electron!