:electron: The Electron website
Перейти к файлу
electron-website-docs-updater[bot] 4c82d176aa
chore: update ref to docs (🤖)
2024-07-01 10:33:58 +00:00
.github ci: temporary workflow to resolve Electron release versions for PRs (#586) 2024-06-26 16:56:05 -07:00
.husky
.vscode
blog chore: add blog global authors (#579) 2024-06-19 11:52:57 -07:00
create-electron-documentation
docs/latest chore: update ref to docs (🤖) 2024-07-01 10:33:58 +00:00
i18n
patches feat: blog sidebar grouped by year (#587) 2024-06-27 09:29:58 -07:00
scripts chore: drop usage of node-fetch (#571) 2024-06-06 10:20:13 -07:00
src feat: blog sidebar grouped by year (#587) 2024-06-27 09:29:58 -07:00
static
.env.example
.eslintrc.js build: upgrade to TypeScript 5.3 (#560) 2024-05-07 12:21:40 -07:00
.gitignore
.markdownlint.json build: update @electron/lint-roller to 2.2.0 (#572) 2024-06-12 13:37:55 -07:00
.markdownlintignore
.nvmrc
.prettierignore
.prettierrc
LICENSE
README.md
app.json
babel.config.js
crowdin.yml
docusaurus.config.ts feat: blog sidebar grouped by year (#587) 2024-06-27 09:29:58 -07:00
i18n.md
package.json feat: blog sidebar grouped by year (#587) 2024-06-27 09:29:58 -07:00
sidebars.js chore: update ref to docs (🤖) 2024-06-12 03:30:41 +00:00
static.json
tsconfig.json build: upgrade to Docusaurus 3 (#563) 2024-05-31 15:10:27 -07:00
yarn.lock feat: blog sidebar grouped by year (#587) 2024-06-27 09:29:58 -07: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

The website currently builds using Node.js 16. If you're using nvm, you can set the correct version of Node.js with nvm use.

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 in 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

Search indexing

The search functionality on electronjs.org is powered by Algolia DocSearch. DocSearch is a program run by Algolia that offers free documentation search for open source projects.

If you are a maintainer with an @electronjs.org email, please message @erickzhao to be added to the Algolia project.

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