:electron: The Electron website
Перейти к файлу
electron-bot 78668bfa88 chore: update ref to docs (🤖) 2023-02-07 10:34:03 +00:00
.github ci: update usage of deprecated ::set-output (#365) 2023-02-03 10:48:33 -08:00
.vscode feat: activate blog plugin 2021-07-21 13:08:13 -07:00
blog fix: fix npm getting started command (#362) 2023-01-30 11:27:41 -08:00
create-electron-documentation chore: update repo name (#305) 2022-11-22 15:25:57 -08:00
docs/latest chore: update ref to docs (🤖) 2023-02-07 10:34:03 +00:00
i18n chore(i18n): run write-translations (#323) 2022-11-30 12:55:58 -08:00
scripts fix: remove old support page from sidebar (#363) 2023-01-31 15:39:51 -08:00
src fix(api-structures): guard against empty arrays (#345) 2023-01-17 16:13:54 -08:00
static chore: add electron logo to legacy path (#335) 2022-12-13 21:11:16 -08:00
.env.example docs: add CrowdIn token to env (#173) 2022-02-11 10:25:38 -08:00
.eslintrc.js refactor: convert website to TypeScript (#330) 2023-01-16 11:21:30 -08:00
.gitignore feat: add apps showcase section (#249) 2022-09-06 16:58:32 -07:00
.prettierrc build: pre-build script 2021-04-21 14:44:15 -07:00
LICENSE chore: add license 2021-05-17 12:05:40 -07:00
README.md docs: update READMEs (#348) 2023-01-23 13:40:19 -08:00
app.json fix: absolute redirects in production 2021-06-04 14:14:30 -07:00
babel.config.js chore: npx docusaurus 2021-03-22 15:04:52 -07:00
crowdin.yml feat: Crowdin integration 2021-10-11 06:09:39 -07:00
docusaurus.config.js refactor: convert website to TypeScript (#330) 2023-01-16 11:21:30 -08:00
docusaurusConfig.ts refactor: convert website to TypeScript (#330) 2023-01-16 11:21:30 -08:00
i18n.md docs: update READMEs (#348) 2023-01-23 13:40:19 -08:00
jest.config.js refactor: convert website to TypeScript (#330) 2023-01-16 11:21:30 -08:00
package.json build(deps-dev): bump json5 from 2.2.1 to 2.2.2 (#361) 2023-01-30 12:53:45 -08:00
sidebars.js chore: update ref to docs (🤖) 2023-02-07 10:34:03 +00:00
static.json fix: show docusaurus 404 page on error 2021-07-06 19:58:23 -07:00
tsconfig.json refactor: convert website to TypeScript (#330) 2023-01-16 11:21:30 -08:00
versions-info.json chore: update ref to docs (🤖) 2022-11-30 06:06:42 +00:00
yarn.lock build: update dependencies to clean up yarn audit (#367) 2023-02-03 13:53:00 -08:00

README.md

electronjs.org

Push and publish main Update i18n deploy Crowdin

This repository contains the code for the Electron website. It is built using Docusaurus, a modern static website generator.

Installation

To get started with a local version of the website, install dependencies with yarn. To get the website running in dev mode, run yarn start. To get a production build of the website, run yarn build.

yarn
yarn start

How to modify the documentation

English docs

For English documentation, the documentation is mirrored from the electron/electron repo. Changes are picked automatically by the electron/electron-website-updater webhook as soon as they are made the latest stable release branch.

For example, if the latest Electron stable release is v22.0.3, then any documentation changes in the 22-x-y branch in electron/electron will be mirrored into the main branch of this repository.

Translations

This project uses Crowdin to manage localizations. For more information on contributing to translations, see the i18n.md document.

How to add a new blog post

To add a new blog post, you need to create a new Markdown file under the /blog folder. Supported frontmatter options are listed in the Docusaurus Blog docs.

Local development

If you want to modify Electron's documentation locally and preview how it looks on the website, you can tell the pre-build script to pull the docs from your local Electron repo.

yarn pre-build ../relative/path/to/local/electron/repo
yarn start

Repository content organization

This repository contains the code for two related things:

The content of this repository is organized as follows:

└─ root
    |
    ├─ .github/workflows → The definitions for the GitHub actions
    |
    |- blog -> Source files for electronjs.org/blog
    |
    ├─ create-electron-documentation → Code for the npm package
    |        of the same name. Read the readme in the folder
    |        for more information.
    |
    |- docs -> Mirrored docs from electron/electron
    |
    ├─ scripts → The code for the package.json tasks and GitHub
    |        actions
    |
    ├─ src → Docusaurus code
    |
    ├─ static → Docusaurus static assets