Giter VIP home page Giter VIP logo

documentation's Introduction

Blocknet Documentation

This repository contains the source code for Blocknet's documentation portal website. These documents are currently under progressive and iterative development.

Powered by MkDocs and MkDocs Material.

Contributing

To contribute to this project, follow the Fork-and-Branch Git Workflow: Fork this repository and in your own forked repository create a new branch off draft. In this new branch you can commit and push your updates by following the Editing guidelines stated below in this README. Following the MkDocs instructions below under Getting Started, you can also view how your changes will look when rendered by MkDocs to HTML. Once you're satisfied with the way your edits look in HTML, merge your new branch to your forked draft branch. Subsequently, create a pull request to merge from your forked repository draft branch into the original repository draft branch.

If you're not familiar enough with how to do this, feel free to create a Github issue with corrections, edits, or additions. If you have a lot of content to add, the best method would be to enter the content into a Google Doc (with settings set to public comments allowed) and link that in your Github issue.

Getting Started

MkDocs supports Python versions 2.7, 3.4, 3.5, 3.6, 3.7, 3.8 and pypy.

Using Linux, MacOS and Windows 10:

# go to directory where you want to clone the repository. (e.g., cd ./src/repos)

# clone this repo
git clone https://github.com/blocknetdx/documentation.git

# change directory to documentation

cd documentation

# create a virtual environment
python -m venv venv

# activate virtual environment
# for Linux and MacOS
source ./venv/bin/activate

# for Windows 10
.\venv\Scripts\activate.bat # cmd.exe
.\venv\Scripts\Activate.ps1 # PowerShell

# install dependencies in virtual environment
python -m pip install -r requirements.txt

Run dev server:

# use from within /documentation/
mkdocs serve

This will compile the docs and output the localhost address where the changes can be previewed:

$ mkdocs serve
INFO    -  Building documentation...
INFO    -  Cleaning site directory
[I 160402 15:50:43 server:271] Serving on http://127.0.0.1:8000
[I 160402 15:50:43 handlers:58] Start watching changes
[I 160402 15:50:43 handlers:60] Start detecting changes

You can now see the docs at http://127.0.0.1:8000/. This will reload automatically when changes are saved. Note that the address is not always the same so it's best to check the output for the correct address.

Exit the virtual environment:

deactivate

Editing

  • Syntax - These documents use Markdown syntax along with additional syntax for specialty formatting:
  • Content
    • For better navigation, instructions for different OS's should be nested in a collapsible panel.
    • Any repeatable sections should be made into a snippet.
    • Page sections should be separated with a diver line ---.
  • Layout - The page meta tags are managed with theme/main.html and styling s managed in docs/css/style.css.
  • Informational Cards:
    • Types - note, abstract, info, tip, warning, danger, bug, example, quote
    • Standard - !!! type "title"
    • No Title - !!! type ""
    • Collapsible (default closed) - ??? type "title"
    • Collapsible (default open) - ???+ type "title"
  • Formatting Conventions:
    • Styling:
      • Italics - Referencing menu/button text (Settings, Submit, Cancel, etc)
      • Bold+Italics - Word emphasis (available balances, fully unlock)
      • Bold - Sub-subsection titles
      • __Bold Bullet Point__
      • inline code - Reference code, commands (servicenode list), calls (dxGetOrders), file contents (ExchangeWallets=), state (finished), parameters (dryrun) , files (blocknet.conf), directories (Blocknet/)
      • ```code block``` - Multiline code or fule contents or anything that might need to be copied such as single line commands.
    • Images - ![optional alt text](imagelink "optional hover text")
    • Spacing:
      • Do not skip a line after section headers.
      • Tables require a newline above and below them for parsing/formatting.
      • Informational panels require a newline above and below them for parsing/formatting.
      • Lists require a newline above and below them for parsing/formatting.
  • Internal Linking:
    • Correct:
      • [](/folder_path/page)
      • [](/folder_path/page#section)
      • [](/folder_path/page/)
      • [](/folder_path/page/#section)
    • Incorrect:
      • [](folder_path/page)
      • [](folder_path/page#section)
      • [](../folder_path/page)
      • [](../folder_path/page#section)
      • [](/folder_path/page.md)
      • [](/folder_path/page.md#section)
      • [](/folder_path/page.html)
      • [](/folder_path/page.html#section)

See full wiki: [MkDocs]](https://www.mkdocs.org/) | MkDocs Material

Adding Pages

  1. Create a markdown file (.md) within one of the directories in the docs/ folder.
  2. Add a title: and description: at the top of the file.
  3. Add an --8<-- "extras.md" tag at the end of the file.
  4. Add a link to the menu (if needed) by listing it under nav: in mkdocs.yml.
  5. Preview the page to make sure everything is rendering correctly.

Creating and Using Snippets

  1. Create a markdown file (.md) within the snippets/ directory.
  2. Use --8<-- "snippetfilename.md" tag to embed the snippet in a page.
    • The filenames are relative to the snippets/ directory.
  3. Preview the page to make sure everything is rendering correctly.

Publishing

  1. Build the docs with the mkdocs build command.
  2. In the site/ directory, remove any folders and subfolders that begin with -. This prefix is manually used to flag pages that have not been completed yet.
  3. Deploy site/ contents to staging site for testing.
  4. Deploy site/ contents to https://docs.blocknet.co/.

documentation's People

Contributors

blocknodesmatter avatar conanmishler avatar hanniabu avatar luusluus avatar magic53 avatar shrnkld avatar

Watchers

 avatar  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.