Coder Social home page Coder Social logo

snowmead / substrate-docs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from substrate-developer-hub/substrate-docs

0.0 0.0 0.0 239.36 MB

Substrate Developer Hub. Substrate is powered by best in class cryptographic research and comes with peer to peer networking, consensus mechanisms, and much more.

Home Page: https://docs.substrate.io

License: BSD Zero Clause License

JavaScript 38.25% CSS 12.45% SCSS 12.89% Rust 34.29% HTML 2.12%

substrate-docs's Introduction

Substrate Docs





follow on Twitter

Contributing

Thank you for your interest in contributing to documentation for Substrate! As a member of the community, you are invited and encouraged to contribute by submitting issues, offering suggestions for improvements to existing content in the form of a pull request, adding review comments to existing pull requests and issues, proposing new content, or creating new pull requests to fix issues or provide new content.

Working with /docs content

URL paths

All .md files added to ./content/md/en/docs/ folder will output an URL path without the /docs prefix, eg.:

  • index.md for a category page : ./content/md/en/docs/reference/index.md/reference/
  • <article-name>.md for an article in its parent category ./content/md/en/docs/reference/glossary.md/reference/glossary/

You can use any structure nesting needed, there is no limit of depth.

Media / Images

  • use ./content/media/images/docs/ folder for images to be included in /docs/*/*.md files
  • source images in .md: /media/images/docs/path/to/your/image/<image>.ext

Navigation config

  • update ./content/config/nav.yaml to add or amend items and linking to your content
    • an exception being ./content/md/en/docs/reference/how-to-guides/... files that should only be listed on the main how-to guide page in the index page for these pages: ./content/md/en/docs/reference/how-to-guides/index.md, not to be included in the sidebar.

This config file is used to generate sidebar menu where:

  • menu is populated from the menu sequence (respecting order)
  • menu supports three level hierarchy
  • menu accepts external links, eg.: https://substrate.io

Local Development

Install

Navigate into your cloned local repo directory and install all dependencies.

# https://github.com/nvm-sh/nvm is suggested, so that you
# switch to the correct version of node set in the .nvmrc file
nvm i

# Install dependencies
yarn

gatsby-plugin-substrate submodule

This website uses a submodule for shared components. To set it up please refer to the gatsby-plugin-substrate repository.

Configure environment variables

Copy example.env.development into a new .env.development file.

Config URL variables based on your preferable local setup. URL will be used for links generation between Substrate websites.

Default localhost port configuration:

GATSBY_WEBSITE_URL=http://localhost:8100
GATSBY_DOCS_URL=http://localhost:8200
GATSBY_MARKETPLACE_URL=http://localhost:8300
GATSBY_CAREERS_URL=https://careers.substrate.io

Start development server

Navigate into your new site’s directory and use the following command to start the development server locally.

yarn develop

Troubleshooting

It is sometimes the case that gastby's cache gets corrupted when making changes. If you run into issues in local development, try to clean this and restart:

yarn clean
yarn develop

Security

Please report security bugs as stated in the static/security.txt file in this repository.

License

TBD, please open an issue to request any use outside of the official host https://docs.substrate.io/ at this time.

substrate-docs's People

Contributors

lisa-parity avatar jonnysmillie avatar evilrobot-01 avatar cuteolaf avatar rmnprkrl avatar nuke-web3 avatar shawntabrizi avatar gflow33 avatar wyhaines avatar hummusonrails avatar je-boska avatar har00ga avatar viac92 avatar platonicsocrates avatar kalaninja avatar gitofdeepanshu avatar muharem avatar niklasp avatar rashmirreddy avatar wirednkod avatar imod7 avatar bernardoaraujor avatar alexiachen avatar brunopgalvao avatar ayushmishra2005 avatar arnauec avatar gogosama-dev avatar hcastano avatar optimumood avatar memorycancel avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.