This repository contains the source code for the TIG documentation website.
tig-docs uses Nextra, a static site generation framework for Next.js. It allows us to write and maintain the documentation in markdown and MDX, with the ability to use custom Next.js components.
To install all the dependencies, run:
pnpm installTo start a local development server on port 3000, run:
pnpm devTo start the development server using docker:
docker-compose up --buildThe documentation is structured as follows:
.
├── components
│ ├── ...
├── pages
│ ├── _app.js
│ ├── _meta.js
│ ├── index.mdx
│ ├── mechanism.mdx
│ ...
├── static
│ ├── ...
├── styles
│ ├── global.css
│ ├── ...
.
-
You can edit or add new MDX files within the
pagesdirectory to edit or create new pages. Each MDX file should contain a frontmatter block at the top of the file with the title and description of the page.Example:
--- title: "Token Holders" description: "Getting Started with TIG" --- # Token Holders ...
Nextra comes with a lot of built-in components that you can use in your markdown files. You can also create custom components in the
componentsdirectory. -
_meta.jscontains the sidebar configuration for the documentation. -
/staticcontains all the static assets used in the documentation. -
/stylescontains global styles and fonts. -
The
componentsdirectory contains custom components used in the documentation. -
cspell.jsoncontains all the words that are ignored by the spell checker.
You can submit an issue if you find any errors or have suggestions for improvements. You can submit an issue for:
- Typos or bugs in the documentation.
- Suggestions for new content.
- Suggestions for improvements to existing content.
To contribute to the documentation, please follow the steps below:
-
Fork the repository.
-
Switch to the
stagingbranch. -
Commit and push your changes to your fork.
-
Run
pnpm spellcheckto check for spelling errors. If there are any errors, you can add the words to thecspell.jsonfile. -
Make a pull request to the
stagingbranch of this repository. Make sure to include a detailed description of the changes you made.
This project is licensed under the MIT License.