Git Product home page Git Product logo

substrate-developer-hub.github.io's Introduction

Substrate Developer Hub

This repository houses documentation for the Substrate blockchain framework.

The docs are written in markdown, processed by docusaurus, and hosted at the Substrate Developer Hub.

Contributing

Directory Structure

The repository is structured as a docusaurus project with the markdown files organized in the /docs directory. The images and other assets are in the /docs/assets/ directory. Follow our contribution guidelines.

Adding a new document

To add a new markdown document,

  • Create your markdown document in a suitable directory inside /docs.
  • If you have images in your document, put them in the /docs/images/ directory.
  • Documentation should follow our contribution guidelines.
  • If you want your document to appear in the sidebar, add its reference in the /website/sidebar.json file under the corresponding section.

Rename an existing document

To rename an existing document,

  • Change the name or path of the document.
  • After the change has been merged, go to the Crowdin project, make sure the translation is already migrated to the new file automatically for all the target languages.
  • Then go to Crowdin project settings, remove the old source file in Files tab.
  • If you don't have access to the Crowdin project, please send email to [email protected] with the file information you want to remove.

Local Testing

  • cd into the /website directory.
  • Execute yarn install and then yarn start.

The Substrate Developer Hub website should open in a browser window.

Once you are done with your changes, feel free to submit a PR.

Staging Deployment

There are two ways to deploy to staging environment, which you can access at staging.substrate.dev, which is hosted on Heroku. Please check with the team members for the HTTP basic authentication username and password.

  1. Commit to your local repository. Run scripts/deploy-staging. This builds the project into the docusaurus static site, and force push the static site to staging branch. The result is then picked up by Heroku. Note that multilingual translations are NOT pulled in.

  2. Commit to your local repository, and then push to staging-source branch. This triggers the CI to build the website AND also pull in multilingual translations from our Crowdin project. The final built static site is then pushed to staging branch and deployed to Heroku.

Production Deployment

Our production site is at substrate.dev. To deploy to production, push your update in source branch. This triggers the CI to build the website AND also pull in multilingual translation from our Crowdin project. The final built static site is then pushed to master branch and hosted on GitHub Pages.

License

Substrate documentation is licenced under the Apache 2 license.

substrate-developer-hub.github.io's People

Contributors

0x7cfe avatar ascjones avatar bjornwgnr avatar daniel-k-ivanov avatar dependabot[bot] avatar ewang8 avatar expenses avatar fgimenez avatar gautamdhameja avatar gavofyork avatar gnunicorn avatar goldsteinsveta avatar gwchsec avatar hcastano avatar hugovk avatar iammelea avatar jeluard avatar jimmychu0807 avatar joepetrowski avatar joshorndorff avatar kaichaosun avatar kigawas avatar ksinghf avatar lsaether avatar retotrinkler avatar riusricardo avatar satoshi-kusumoto avatar shawntabrizi avatar stefie avatar tbaut avatar

Watchers

 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.