Repository navigation
Migrate to docusaurus #6533
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
jeluard
merged 8 commits into
ChainSafe:unstable
from
jeluard:jeluard/docusaurus-migration
Mar 18, 2024
Merged
Migrate to docusaurus #6533
Changes from 2 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
35aec8f
chore: remove mkdocs specifics
jeluard 41a8a35
chore: migrate to docusaurus
jeluard a0a1052
chore: update docs/pages/tools/flamegraphs.md
jeluard 7b96502
chore: update packages/cli/docsgen/markdown.ts
jeluard 4682b9c
chore: update docs/src/css/custom.css
jeluard 6a0f6b5
update docs/src/css/custom.css
jeluard d306e22
chore: address comments
jeluard e129356
chore: fix small issues
jeluard File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -77,3 +77,7 @@ packages/cli/.git-data.json | |
| dictionary.dic | ||
|
|
||
| temp/ | ||
|
|
||
| # Docusaurus | ||
| .docusaurus | ||
| build/ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| # Website | ||
|
|
||
| This website is built using [Docusaurus](https://docusaurus.io/), a modern static website generator. | ||
|
|
||
| ### Installation | ||
|
|
||
| ``` | ||
| $ yarn | ||
| ``` | ||
|
|
||
| ### Local Development | ||
|
|
||
| ``` | ||
| $ yarn start | ||
| ``` | ||
|
|
||
| This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server. | ||
|
|
||
| ### Build | ||
|
|
||
| ``` | ||
| $ yarn build | ||
| ``` | ||
|
|
||
| This command generates static content into the `build` directory and can be served using any static contents hosting service. | ||
|
jeluard marked this conversation as resolved.
Resolved
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| module.exports = { | ||
| presets: [require.resolve('@docusaurus/core/lib/babel/preset')], | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,111 @@ | ||
| // @ts-check | ||
| // `@type` JSDoc annotations allow editor autocompletion and type checking | ||
| // (when paired with `@ts-check`). | ||
| // There are various equivalent ways to declare your Docusaurus config. | ||
| // See: https://docusaurus.io/docs/api/docusaurus-config | ||
|
jeluard marked this conversation as resolved.
Resolved
|
||
|
|
||
| import {themes as prismThemes} from "prism-react-renderer"; | ||
|
|
||
| /** @type {import('@docusaurus/types').Config} */ | ||
| const config = { | ||
| title: "Lodestar", | ||
| tagline: "TypeScript Implementation of Ethereum Consensus", | ||
| favicon: "img/favicon.ico", | ||
|
|
||
| // Set the production url of your site here | ||
| url: "https://chainsafe.github.io/", | ||
| // Set the /<baseUrl>/ pathname under which your site is served | ||
| // For GitHub pages deployment, it is often '/<projectName>/' | ||
| baseUrl: "/lodestar/", | ||
|
|
||
| // GitHub pages deployment config. | ||
| organizationName: "ChainSafe", | ||
| projectName: "lodestar", | ||
|
|
||
| onBrokenLinks: "warn", | ||
| onBrokenMarkdownLinks: "warn", | ||
|
|
||
| i18n: { | ||
| defaultLocale: "en", | ||
| locales: ["en"], | ||
| }, | ||
|
|
||
| presets: [ | ||
| [ | ||
| "classic", | ||
| /** @type {import('@docusaurus/preset-classic').Options} */ | ||
| ({ | ||
| docs: { | ||
| path: "pages", | ||
| sidebarPath: "./sidebars.js", | ||
| editUrl: "https://github.com/ChainSafe/lodestar/tree/unstable/docs/", | ||
| routeBasePath: "/", | ||
| }, | ||
| theme: { | ||
| customCss: "./src/css/custom.css", | ||
| }, | ||
| }), | ||
| ], | ||
| ], | ||
|
|
||
| markdown: { | ||
| mermaid: true, | ||
|
jeluard marked this conversation as resolved.
Resolved
|
||
| }, | ||
| themes: [ | ||
| '@docusaurus/theme-mermaid', | ||
| '@easyops-cn/docusaurus-search-local' | ||
| ], | ||
|
|
||
| themeConfig: | ||
| /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ | ||
| ({ | ||
| navbar: { | ||
| title: "Lodestar Documentation", | ||
| logo: { | ||
| alt: "Lodestar Logo", | ||
| src: "img/logo.png", | ||
| }, | ||
| items: [ | ||
| { | ||
| href: "https://github.com/ChainSafe/lodestar", | ||
| label: "GitHub", | ||
| position: "right", | ||
| }, | ||
| ], | ||
| }, | ||
| footer: { | ||
| style: "dark", | ||
| links: [ | ||
| { | ||
| title: "Docs", | ||
| items: [ | ||
| { | ||
| label: "Introduction", | ||
| to: "/introduction", | ||
| }, | ||
| ], | ||
| }, | ||
| { | ||
| title: "Community", | ||
| items: [ | ||
| { | ||
| label: "Discord", | ||
| href: "https://discord.com/invite/yjyvFRP", | ||
| }, | ||
| { | ||
| label: "Twitter", | ||
| href: "https://twitter.com/lodestar_eth", | ||
| }, | ||
| ], | ||
| }, | ||
| ], | ||
| copyright: `Copyright © ${new Date().getFullYear()} ChainSafe, Inc.`, | ||
|
jeluard marked this conversation as resolved.
Resolved
|
||
| }, | ||
| prism: { | ||
| theme: prismThemes.github, | ||
| darkTheme: prismThemes.dracula, | ||
| }, | ||
| }), | ||
| }; | ||
|
|
||
| export default config; | ||
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| { | ||
| "name": "@lodestar/docs", | ||
| "version": "0.0.0", | ||
| "private": true, | ||
| "scripts": { | ||
|
matthewkeil marked this conversation as resolved.
Resolved
|
||
| "docusaurus": "docusaurus", | ||
| "start": "docusaurus start", | ||
| "build": "docusaurus build", | ||
| "swizzle": "docusaurus swizzle", | ||
| "deploy": "docusaurus deploy", | ||
| "clear": "docusaurus clear", | ||
| "serve": "docusaurus serve", | ||
| "write-translations": "docusaurus write-translations", | ||
| "write-heading-ids": "docusaurus write-heading-ids" | ||
| }, | ||
| "dependencies": { | ||
| "@docusaurus/core": "3.1.1", | ||
| "@docusaurus/preset-classic": "3.1.1", | ||
| "@docusaurus/theme-mermaid": "^3.1.1", | ||
| "@easyops-cn/docusaurus-search-local": "^0.40.1", | ||
| "@mdx-js/react": "^3.0.0", | ||
| "clsx": "^2.0.0", | ||
| "prism-react-renderer": "^2.3.0", | ||
| "react": "^18.0.0", | ||
| "react-dom": "^18.0.0" | ||
| }, | ||
| "devDependencies": { | ||
| "@docusaurus/module-type-aliases": "3.1.1", | ||
| "@docusaurus/types": "3.1.1" | ||
| }, | ||
| "browserslist": { | ||
| "production": [ | ||
| ">0.5%", | ||
| "not dead", | ||
| "not op_mini all" | ||
| ], | ||
| "development": [ | ||
| "last 3 chrome version", | ||
| "last 3 firefox version", | ||
| "last 5 safari version" | ||
| ] | ||
| }, | ||
| "engines": { | ||
| "node": ">=18.0" | ||
| } | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.