Giter VIP home page Giter VIP logo

docs-sandbox's Introduction

Substrate Developer Hub SANDBOX


This repository serves as the developer hub SANDBOX for the Substrate blockchain framework. The docs are written in pure markdown, processed by MKdocs.

๐Ÿฆพ Docs Migration Instructions:

The ./old-docs-migration folder has all the ported docs, renamed for convenience to be .md files via this method.

Now our mission, if we choose to accept it... (we do!), is to port all the files in ./old-docs-migration into the new framework outlined in our team Notion:

The framework will be implemented in the ./source/docs folder.

๐Ÿ“‘ Workflow

  1. Select a new page you want to write, and mark yourself as managing this in the tracker spreadsheet
  2. Make a new file in the /source/docs dir for this work or drag a page from ./old-docs-migration into the right place in the /source/docs dir.
  3. Cut the contents of any file that you are migrating from ./old-docs-migration into the /source/docs files so that it no longer remains in the ./old-docs-migration files.
  4. Delete any duplicated content in ./old-docs-migration you run into while pulling from multiple locations.
  5. Selectively reword as needed existing content in /source/docs when you find it already in place in ./old-docs-migration. The *delete it from ./old-docs-migration.

This way our definition of done with the migration is when ./old-docs-migration is empty!

๐Ÿš€ Quick start

  1. Clone the repo

    # create a new folder to get going
    git clone [email protected]:substrate-developer-hub/docs-sandbox.git
  2. Install mkdocs

    https://www.mkdocs.org/getting-started/

  3. Serve the site

    # move to the source dir that includes `mkdocs.yml`
    cd docs-sandbox/source
    # options for `--theme [mkdocs|material|readthedocs]`
    mkdocs serve

    The site should be ready to view at http://127.0.0.1:8000/ and/or http://localhost:8000/

  4. Make edits...

  5. Update source/mkdocs.yml to render site

    Should be relatively self explanatory

    # Navigation
    nav:
      - 'Some section':
        - 'Page Title': 'some/path/to-a-file.md'
        - 'Subsection':
          - 'some/path/to-a-file.md
  6. See they changes look nice and there are no mkdocs serve warnings/errors...

  7. Commit changes...

  8. Make a PR...

  9. Deploy to gh-pages

    mkdocs gh-deploy
  10. Profit ๐Ÿ˜Ž

License

TBD


bash file migration magic

To migrate old v3 dir dumped into old-docs-migration

To get old dir <folder>/index.mdx to <folder>.md:

# move all `<folder>/index.mdx` to `<folder>.md`
find ./ -depth -name "*.mdx" -exec sh -c 'mv $1 "${1%/index.mdx}.md"' _ {} \;
# delete all empty folders
find /path/ -empty -type d -delete

docs-sandbox's People

Contributors

eve-parity avatar eve832 avatar lisa-parity avatar nuke-web3 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.