Coder Social home page Coder Social logo

dcrdocs's Introduction

dcrdocs

Build Status ISC License

dcrdocs is source code for the Decred project documentation.

dcrdocs is built with MkDocs - a documentation toolkit written in Python.

Development

Install Python

In order to develop on dcrdocs you will need Python installed on your system. Version 3.9 is recommended because this is the version used by the live site, however MkDocs does also support versions 3.6 and later. Python 2 is not supported.

You can verify your installation of Python by checking the output from these two commands:

$ python --version
Python 3.9.5
$ pip --version
pip 21.1.2

Install dependencies

To install MkDocs and all of the other Python libraries required by dcrdocs:

$ pip install mkdocs && pip install --user -r requirements.txt

Getting started

This repo contains a single configuration file named mkdocs.yml, and a folder named docs that will contain the documentation source files. MkDocs comes with a built-in dev-server that lets you preview the documentation as you work on it. Make sure you are in the same directory as the mkdocs.yml configuration file, and then start the server by running the mkdocs serve command:

$ mkdocs serve
INFO     -  Building documentation...
INFO     -  Cleaning site directory
INFO     -  Documentation built in 9.09 seconds
INFO     -  [13:26:55] Serving on http://127.0.0.1:8000/

If you are using Windows, you may need to inform python to search sys.path for the mkdocs module:

$ python -m mkdocs serve
INFO     -  Building documentation...
INFO     -  Cleaning site directory
INFO     -  Documentation built in 9.09 seconds
INFO     -  [13:26:55] Serving on http://127.0.0.1:8000/

Open up http://127.0.0.1:8000 in your browser, and you will see the documentation home page being displayed. The dev-server also supports auto-reloading, and will rebuild your documentation whenever anything in the configuration file or the documentation directory changes.

Formatting

In general, stick to standard Markdown formatting. However, these docs use Material for Mkdocs, so consult their documentation if you need additional formatting tools.

Deploying

To deploy dcrdocs, first build the documentation:

$ ./bin/build_docs.sh

This will build the documentation into a new directory named site.

The version of dcrdocs that you just built only uses static files which are all contained within the site/ directory, so this directory can be hosted using almost any web server software.

Docker

dcrdocs can also be built and hosted in a Docker container. Build the container using:

$ ./bin/build.sh

The container can then be run with:

$ docker run -d --rm -p <local port>:80 decred/dcrdocs:latest

Pages to review upon new releases

CLI releases

  • advanced/manual-cli-install.md
  • wallets/cli/dcrd-and-dcrwallet-cli-arguments.md
  • wallets/cli/dcrctl-rpc-commands.md
  • wallets/cli/cli-installation.md
  • advanced/solo-proof-of-stake-voting.md
  • advanced/verifying-binaries.md
  • advanced/secure-cold-wallet-setup.md

politeiavoter releases

  • advanced/solo-proof-of-stake-voting.md

Decrediton releases

  • wallets/decrediton/decrediton-setup.md
  • wallets/decrediton/using-decrediton.md
  • wallets/decrediton/decrediton-troubleshooting.md

dcrlnd release

  • lightning-network/dcrlncli/options-and-commands.md

Getting help

To get help with dcrdocs please create a GitHub issue or join the Decred community using your preferred chat platform.

dcrdocs's People

Contributors

jholdstock avatar jcvernaleo avatar dajohi avatar timthomascode avatar fainges avatar richardred0x avatar karamble avatar 0xmzz avatar hypernoob avatar aldoiljazi avatar matthawkins90 avatar davecgh avatar matheusd avatar jolan avatar alexlyp avatar degeri avatar plabarta avatar dezryth avatar imestin avatar jzbz avatar peterzen avatar ttneverdies avatar gozart1 avatar obxium avatar arriu avatar sipherr avatar anthonyfranks avatar noahpierau avatar primedominus avatar infertux 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.