Source for the d7y.io
Go to file
dependabot[bot] eef3609fa6
build(deps-dev): Bump lint-staged from 15.5.2 to 16.0.0 (#263)
Bumps [lint-staged](https://github.com/lint-staged/lint-staged) from 15.5.2 to 16.0.0.
- [Release notes](https://github.com/lint-staged/lint-staged/releases)
- [Changelog](https://github.com/lint-staged/lint-staged/blob/main/CHANGELOG.md)
- [Commits](https://github.com/lint-staged/lint-staged/compare/v15.5.2...v16.0.0)

---
updated-dependencies:
- dependency-name: lint-staged
  dependency-version: 16.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-16 11:18:41 +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 fix: change preheat document (#264) 2025-05-15 17:41:31 +08:00
scripts feat: Document delete Chinese (#154) 2024-09-18 15:38:43 +08:00
sidebars Users need to be recommended HTTPS proxy in the documentation (#226) 2025-02-14 18:58:19 +08:00
src chore: bump lottie-react version to v2.41 (#244) 2025-04-16 15:24:10 +08:00
static docs: rename repo Dragonfly2 to dragonfly (#195) 2024-12-20 17:16:51 +08:00
versioned_docs fix: change preheat document (#264) 2025-05-15 17:41:31 +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 chore: changed README.md file from Docusaurus 2 to Docusaurus 3 (#253) 2025-04-24 09:43:20 +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 docs: add HTTPS and JWT configuration for Security Best Practice (#228) 2025-02-17 12:02:55 +08:00
package.json build(deps-dev): Bump lint-staged from 15.5.2 to 16.0.0 (#263) 2025-05-16 11:18:41 +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 3, 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.