Граф коммитов

839 Коммитов

Автор SHA1 Сообщение Дата
electron-bot 2541437f6d chore: update ref to docs (🤖) 2021-05-24 07:48:25 +00:00
electron-bot 0eaeec0af3 chore: update ref to docs (🤖) 2021-05-24 07:36:58 +00:00
Antón Molleda f9f1c6813b
chore: update ref to docs 2021-05-21 11:43:20 -07:00
Tony Ferrell d54d55175a
feat: allow different files to be focused in an embedded fiddle (#36)
Add support for custom parameterization in the fiddle's code block header.

Example:

```javascript fiddle='docs/fiddles/features/keyboard-shortcuts/web-apis|focus=renderer.js'
```

This will default the focused tab to `renderer.js`. To minimize focus issues as fiddles are changed,
if the provided file is not found a compile-time error will occur.

Co-authored-by: Ethan Arrowood <ethan@arrowood.dev>
Co-authored-by: Erick Zhao <erick@hotmail.ca>
2021-05-20 16:33:09 -07:00
Tony Ferrell 847efdde3c
fix: fiddle links should include the v in the version tag (#35) 2021-05-18 16:15:49 -07:00
Erick Zhao f81bbfc5ff
docs: small readme update (#33) 2021-05-17 17:00:35 -07:00
Antón Molleda 55a813ec1e
chore: add license
Fix #31
Close #32
2021-05-17 12:05:40 -07:00
Antón Molleda 11a0f9d3f1
build: update content when upstream changes
This commit adds support to respond to `repository_dispatch` events
coming from `electron/electron-website-updater` that contain the
SHA of the new commit in `electron/electron` to pin to in
`package.json`.

More information about the architecture can be found in #19.

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

Fix #19
Close #23
2021-05-13 21:08:47 -07:00
Erick Zhao ac21aa7f3b
chore: continue API sidebar re-org
Close #24
2021-05-13 16:53:09 -07:00
Antón Molleda 53c017cc26
chore: update to beta-0
And update an issue with `sidebars.js` along the way.

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

Fix #29
Close #30
2021-05-13 16:10:34 -07:00
Antón Molleda eda594a8d7
feat: add "Examples" navigation link
Add the top navigation link "Examples" and a new page that explains how
to acquire Fiddle and run the examples available in the sidebar.

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

Close #26
Partial work on #2

Co-authored-by: Erick Zhao <erick@hotmail.ca>
2021-05-12 13:44:53 -07:00
Antón Molleda d97a03dbeb fix: show titles in docs
With the update to .75 the titles are hidden and `hide_title` has to be
disabled. It was enabled initially because otherwise titles were
duplicated (one from frontmatter, the other from the markdown).
2021-05-12 12:53:11 -07:00
Antón Molleda 5fddce2bbf
chore: enable review apps
Add an app.json with the right buildpacks so PRs can be previewed.

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

Close #27
2021-05-11 10:31:50 -07:00
Antón Molleda bc9caa2d3b
build: enable CI
Enables CI via GitHub actions. Additionally it uses the action
`bahmutov/npm-install` to reduce the process of installing
dependencies by ~40%.

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

Close #25
2021-05-07 13:43:24 -07:00
Antón Molleda 11914852af
feat: enable docsearch
Enable docsearch module with provided configuration by algolia.

Currently the search does not seem to work when `contextSearch` is
enabled. This seems to be a temporary issue per Clement's mail:

> As the DocSearch plugin is not active yet, you won't be able to use
the Docusaurus `contextualSearch` option until next crawl.

While this feature is not necessary (there are no versioned docs),
it seems like the search results page has it enabled by default
always ([1]) so might as well have it enabled everywhere to make sure it
works.

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

[1]: https://github.com/temporalio/documentation/pull/357/files#r616656533
Ref: https://github.com/facebook/docusaurus/issues/3805
Part of #2
Close #22
2021-05-05 09:17:01 -07:00
Charles Kerr cc18c4ea29
Merge pull request #21 from electron/chore/update-docusaurus
chore: update docusaurus to α.75
2021-05-05 11:06:13 -05:00
Antón Molleda 2d94ae23e5
chore: automatically use the latest stable release
Close #20
2021-05-03 05:26:40 -07:00
Antón Molleda 6e2044a393 chore: update docusaurus to α.75 2021-04-30 15:25:31 -07:00
Erick Zhao bd09153344
fix: ignore docs to be removed
Close #18
2021-04-29 12:03:54 -07:00
Antón Molleda e44f5c939f
fix: bin info in `create-electron-documentation`
Without the `bin` property in `package.json` and `#!` at the top of
`index.js` the command `npm create electron-documenation` does not
work properly.

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

Close #17
2021-04-29 10:49:02 -07:00
Antón Molleda c566850ab6
feat: add `create-electron-documentation` package
* feat: add `create-electron-documentation` package

Add the code for the package `create-electron-documentation` to help
writers of Electron documentation scaffold their examples faster and
following good patterns (using `sandbox` and `contextBridge`).

Once published the developers will use it by calling

```console
npm create electron-documentation
```

From a folder under the main Electron documentation folder.

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

Fix #12
Close #13
2021-04-29 09:57:33 -07:00
Antón Molleda d3951bd803
fix: format of generated `sidebars.js`
Use `json5` to `stringify` the content of `sidebars` so it can be read
as a regular JS object instead of a JSON one.

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

Fix #15
Close #16
2021-04-28 13:17:38 -07:00
Antón Molleda 83be81107e chore: add heroku config
Add `static.json` specifying custom headers for static assets and what
folder to serve (`build`).

The Heroku application was created following
["Getting Started with Single Page Apps on Heroku"][SPA Heroku].

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

Ref #2
[SPA Heroku]: https://gist.github.com/hone/24b06869b4c1eca701f9
2021-04-28 10:48:43 -07:00
Erick Zhao d532ba230f
chore: initial re-org API sidebar
Separates the existing API docs into:

* Main process
* Renderer process
* Structures
* Custom DOM elements

All other pages that don't fit neatly in a bucket are under
miscellaneous but will be moved to other sections.

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

Close #14
2021-04-28 08:54:58 -07:00
Antón Molleda 850daca67f chore: fixes for static publishing
Fix broken links and ignore static output folder (`build/`)
2021-04-26 12:29:39 -07:00
Antón Molleda 4ecc9a53aa
build: allow building from local electron/electron
This PR allows developers to pass a parameter to indicate where in the
file system the `prebuild` script should look for the documentation. It
assumes it is a clone of `electron/electron` so the content should be
under a `/docs` folder. E.g.:

```console
yarn prebuild ../electron
```

In the future there might be a `watch` option enabled by default. This
is the MVP for #4.

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

Fix #4
Close #9
2021-04-26 06:48:00 -07:00
Antón Molleda 5b9da1ecfb feat: preserve sidebar order with new content
This change makes sure that `sidebars.js` is not generated from scratch
each time that `prebuild` is called:

- New content is added at the end of the corresponding category or in
a new one if it does not exist.
- If no new content is found, `sidebars.js` is left unmodified.

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

Fix #8
2021-04-26 06:44:20 -07:00
Erick Zhao 44e10100ef chore: disable blog 2021-04-23 11:26:35 -07:00
Antón Molleda a54f6ecbc1 build: transform fiddle markdown
The documentation in `electron/electron` uses the current format to
embed a fiddle:

```
```javascript fiddle='docs/fiddles/screen/fit-screen'
```

The new fiddle remark plugin uses:

```
```fiddle docs/fiddles/example
```

This PR updates all the old style to use the new one.

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

Ref https://github.com/electron/electronjs.org-new/pull/5
2021-04-22 13:24:33 -07:00
Erick Zhao d1f2bf8cff
feat: fiddle remark plugin
Close #5
2021-04-22 13:02:46 -07:00
Antón Molleda c91492998e build: add prettier 2021-04-21 14:44:15 -07:00
Antón Molleda 972a54e1d7 build: pre-build script
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

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

Fix #6
Ref: Solves parts of #2
2021-04-21 14:44:15 -07:00
Erick Zhao 03b66ad977 chore: initial sidebar configuration 2021-04-14 16:17:45 -07:00
Erick Zhao c1417be8f6 chore: add blog posts 2021-04-14 16:17:45 -07:00
Erick Zhao 3aac172169 chore: update electron-specific config links 2021-04-14 16:17:45 -07:00
Erick Zhao 66a91b5d82 chore: wip 2021-04-12 15:54:40 -07:00
Erick Zhao 867fe6f55e chore: wip 2021-04-12 15:41:57 -07:00
Erick Zhao 6627f6ccbb chore: update .gitignore 2021-03-23 10:19:42 -07:00
Erick Zhao 050bce8180 chore: npx docusaurus 2021-03-22 15:04:52 -07:00