scaffold-eth / se-2-docs

Documentation site for Scaffold-ETH 2
https://docs.scaffoldeth.io
MIT License
13 stars 23 forks source link

Scaffold-ETH 2 Docs

This website contains Scaffold-ETH 2 Documentation and is built using Docusaurus 2.

Requirements

To run the Documentation site locally, but first ensure you have Node and Git installed.

Installation

Clone the repository, install all dependencies as well as build all local packages, and then start Docusaurus.

git clone https://github.com/scaffold-eth/se2-docs.git
cd se2-docs
npm install
npm run start

Run docs with search feature enabled

Instead of npm run start, you'll need to:

npm run docusaurus build
npm run docusaurus serve

If you change the search configuration, you'll need to run npm run docusaurus build and then npm run docusaurus serve again to refresh with the changes.

Contribution Guidelines

Thank you for your interest in contributing to improve the documentation!

There are two types of contributions you can make:

Content contributions

The documentation content is written in Markdown format and is located in the docs folder. If you’re not familiar with Markdown, please check this guide or this cheat sheet to get started.

MDX files are also present, they combine Markdown with React. You can learn more about MDX files in Docusaurus docs.

Existing content

If you find anything that is confusing or can be improved in an existing document, you can click "Edit this page" at the bottom of the page, which will redirect to the GitHub edit form of that document. Make your changes and submit a pull request (PR).

New content

When adding a new page, you need to fork the repository, create a new branch, and make all changes necessary in your repository. Once you are done with your changes, create a PR to Scaffold-ETH 2 Documentation repository.

Add the new pages to the docs folder, placing them in the specific directory where you want the page to be shown. Siderbar link will get autogenerated under your specific folder, in the position that you specify in your document header. Example:

---
sidebar_position: 2
---

If you want to create a new folder to the Document structure, you'll need to add the new folder and a markdown document with the same name of that folder, which will be displayed when the users click on the sidebar link.

Website contributions

For contributions to the Website Code, we follow the "fork-and-pull" Git workflow.

Fork the repository, create a new branch, and make all changes necessary in your repository. Once you are done with your changes, create a PR to Scaffold-ETH 2 Documentation repository.

Configuration

Sidebars

Styles

If there's something overlooked in this README.md or if any instructions are unclear, remember you can also contribute to improve it. Fork, modify and PR to our repository!

All contributions are welcome!