jacekn / new-docs

Docs: https://stellar-documentation.netlify.com/docs/ API Ref: https://stellar-documentation.netlify.com/api/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stellar docs

Structure

yarn start to start local development.

src/ contains all documentation, API reference sections, and web assets (images, videos, pdfs) needed for the docs. Each page is authored as an index.mdx document.

Each folder must have a metadata.json file with 3 keys:

{
  "order": 0,
  "title": "Display Name in Nav"
}

If we want to sort pages in an alphabetical order, add the following in the main folder's metadata.json. The below example is for /glossary page

{
  "order": 60,
  "title": "Glossary",
  "sortMethod": "alphabetical"
}

Folders may be nested, which means that a final URL may be stitched together from multiple metadata files.

src/
├── documentation/
│   ├── metadata.json
│   ├── index.mdx
│   └── walkthroughs/
│       ├── metadata.json
│       └── index.mdx
└── reference/
    ├── metadata.json
    ├── index.mdx
    └── horizon/
        ├── metadata.json
        └── index.mdx

Local production build

The build has been dockerized so we can host with nginx on Kubernetes, which can be compiled and run with yarn scripts. Make sure you have Docker set up on your machine.

yarn production
# or
yarn prod:build
yarn prod:serve

About

Docs: https://stellar-documentation.netlify.com/docs/ API Ref: https://stellar-documentation.netlify.com/api/

License:MIT License


Languages

Language:JavaScript 99.3%Language:Dockerfile 0.7%