Source for the d7y.io
Go to file
Zhaoxinxin 3cfc86dc5f
feat: upgrade docusaurus to the latest version (#209)
Signed-off-by: zhaoxinxin <1186037180@qq.com>
2025-01-03 16:11:02 +08:00
.github build(deps): Bump actions/checkout from 3 to 4 (#8) 2023-09-15 14:13:19 +08:00
.husky feat: initialize commit 2023-09-01 11:16:56 +08:00
blog feat: upgrade docusaurus to the latest version (#209) 2025-01-03 16:11:02 +08:00
docs docs: add encrypted storage feature for client in v2.4 roadmap (#208) 2025-01-02 11:32:15 +08:00
scripts feat: Document delete Chinese (#154) 2024-09-18 15:38:43 +08:00
sidebars docs: change advanced-guides (#197) 2024-12-27 10:17:31 +08:00
src docs: rename repo Dragonfly2 to dragonfly (#195) 2024-12-20 17:16:51 +08:00
static docs: rename repo Dragonfly2 to dragonfly (#195) 2024-12-20 17:16:51 +08:00
versioned_docs feat: upgrade docusaurus to the latest version (#209) 2025-01-03 16:11:02 +08:00
versioned_sidebars feat: archive v2.2.0 and add v2.3.0 roadmap and v2.4.0 roadmap (#205) 2024-12-30 21:02:11 +08:00
videos/sessions feat: upgrade docusaurus to the latest version (#209) 2025-01-03 16:11:02 +08:00
.editorconfig feat: initialize commit 2023-09-01 11:16:56 +08:00
.gitignore feat: initialize commit 2023-09-01 11:16:56 +08:00
.markdownlint.yml feat: initialize commit 2023-09-01 11:16:56 +08:00
.prettierignore feat: initialize commit 2023-09-01 11:16:56 +08:00
.prettierrc feat: initialize commit 2023-09-01 11:16:56 +08:00
LICENSE feat: initialize commit 2023-09-01 11:16:56 +08:00
README.md feat: initialize commit 2023-09-01 11:16:56 +08:00
babel.config.js feat: initialize commit 2023-09-01 11:16:56 +08:00
docsearch.json feat: initialize commit 2023-09-01 11:16:56 +08:00
docusaurus.config.js feat: upgrade docusaurus to the latest version (#209) 2025-01-03 16:11:02 +08:00
netlify.toml feat: upgrade docusaurus to the latest version (#209) 2025-01-03 16:11:02 +08:00
package.json feat: upgrade docusaurus to the latest version (#209) 2025-01-03 16:11:02 +08:00
sidebars.js docs: change advanced-guides (#197) 2024-12-27 10:17:31 +08:00
versions.json feat: archive v2.2.0 and add v2.3.0 roadmap and v2.4.0 roadmap (#205) 2024-12-30 21:02:11 +08:00

README.md

Dragonfly Website

This repository contains the source code for d7y.io.

It's built by Docusaurus 2, a modern static website generator.

Add or Update Docs

When you add or modify the docs, these five files(docs/, docs/resource/, and sidebars/docs.js) should be taken into consideration.

  1. Create a markdown file in the directory docs/. All markdown files need to follow the format, that the title at the beginning should be in the following format:

    ---
    title: Title Name
    ---
    
  2. If you need image resources in markdown, put the image in the docs/resource/ directory. you should put the image resources here and use a relative path like below:

    ![alt](./resources/example.png)
    
  3. sidebars/docs.js, this file contain the navigation information. Please read the official docs of docusaurus to learn how to write sidebar.js.

    module.exports = {
      docs: [
        {
          type: "category",
          label: "Markdown Features",
          link: {
            type: "doc",
            id: "guides/markdown-features/introduction",
          },
          items: [
            "guides/markdown-features/react",
            "guides/markdown-features/tabs",
            "guides/markdown-features/code-blocks",
            "guides/markdown-features/admonitions",
            "guides/markdown-features/headings",
            "guides/markdown-features/inline-toc",
            "guides/markdown-features/assets",
            "guides/markdown-features/plugins",
            "guides/markdown-features/math-equations",
            "guides/markdown-features/head-metadata",
          ],
        },
      ],
    }
    

Website Development

Installation

yarn install

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.