Git Product home page Git Product 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

0xmzz avatar aldoiljazi avatar alexlyp avatar anthonyfranks avatar arriu avatar dajohi avatar davecgh avatar degeri avatar dezryth avatar fainges avatar gozart1 avatar hypernoob avatar imestin avatar infertux avatar jcvernaleo avatar jholdstock avatar jolan avatar jzbz avatar karamble avatar matheusd avatar matthawkins90 avatar noahpierau avatar obxium avatar peterzen avatar plabarta avatar primedominus avatar richardred0x avatar sipherr avatar timthomascode avatar ttneverdies avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dcrdocs's Issues

warn about seed re-use/sharing

Numerous support issues have been related to plugging the same seed into multiple wallets, web wallet, etc. and using them concurrently.

This is unsupported and causes problems when the wallets fail to receive/see all transactions/addresses.

Should strongly recommend "new wallet, new seed".

Internationalization

We need to decide on the best way to provide translated docs.

mkdocs does not support anything natively (see mkdocs/mkdocs#617 for details).

That leaves us with a few options.

  1. Switch to another doc package.
  2. Rearange the current repo so it looks like:
dcrdocs/
  en/
  es/
  ru/
  ...

Each with a full set of docs. Then we could serve the default (en) as docs,decred.org and any other language in a subdomain (ru.docs.decred.org) and provide some internal links. This is more work on the part of the admin.
3. Make a sub dir in the current structure for translations and server those in the same domain as docs.decred.org/ru/ or something like that.
4. Any other ideas I haven't thought of?

Remove generated files from repo

The generated html files do not need to be kept in the repo. They can be generated before deploy with:

mkdocs build

and then served statically as normal. No reason for them to be in the repo. Also, having them in the repo complicated rebases and makes it hard to have more than one PR going at the same time.

Move blog to Git

Decred and Company 0 blogs have some articles on Decred. I'd like to save them all locally.

Right now I use this:

wget \
    --timestamping \
    --recursive \
    --page-requisites \
    --convert-links \
    --accept html,png,jpg,txt \
    --reject-regex "/page/|/feed/|/tag/|/category/|/author/" \
    --wait=1 \
    https://blog.companyzero.com/

Obviously it is complex, slow, redundant, incomplete (if external images are linked), has no integrity protecteion and cannot be quickly synced to pull latest blogs.

Much cooler would be to just git clone.

Working examples of Git-based blogs:

For more motivation see Joanna's My New Git-based blog.

Sorry if this repository is a wrong place for this issue.

P.S. I wish the same for old Conformal blog, it had some articles on btcsuite.

Make github more prominent

There is a link to this github repo the docs website but we still might want to make it a little clearer that we want both issues and PRs on the docs repo and that the docs site is not just some static thing but something we want people to help improve.

That said I'm not sure how we can best point that out which is why I've put an issue here rather than just going and changing it and doing a PR myself.

Enable pos from wallet

Hello, while I was following your Proof Of Stake guide from docs.decred.org I experienced some problems and couldn't vote my tickets. I then figured out that you had to add --enablestakemining when starting your wallet but the documentation doesn't state this on that page. Even though it may be a very basic thing, its hard to figure out that you had to add that when it doesn't write it on the documentation. It would be helpful for other people following the documentation that you add the --enablestakemining command.

Wikipedia.org Decred page

At the moment there is no Decred entry on wikipedia.
As a low level entry point to Decred this can be very useful.

Unable to create wallet

Hello, I have an email stating that "
You recently signed up for the Decred airdrop. The project is delighted to let you know your application has been successful!" I followed the steps at the time and created a seed and hex address. When I go to https://wallet.decred.org/#/ to try and create a wallet I keep getting an error.

I deleted the generic wallet that had already existed. There was no balance on that first wallet. I then tried to create the wallet with the seed by "create a new wallet." When I go to advanced options; there is nothing that specifies a seed so I used "Specify Recovery Phrase." however, when I input the seed here and name my wallet etc, I get an error that says, "Error creating wallet: Network connection error."

Can you guys please advise me on this. Am I doing the correct steps to generate this wallet? Is the network just down at the moment? If yes, when will it be back up?

Very Respectfully,
Matthew Spano

Support Page

Add a support page - "Where To Get Additional Help". Show the directory that coin_artist made in Slack, add instructions for getting an invite to Slack, link to forums, IRC, etc,...

Golden Path discussion

Need to agree on a "map" for our Golden Path. How does everyone interpret the words "Golden Path"?

Migrate wiki information to dcrdocs

Currently we have some documentation on the wiki with the rest on dcrdocs. Need to move that information from the wiki over here so it can be closed.

Dark theme

As mentioned in the design PR #53, I very much prefer the older dark themed site to the new site with lots of white background on it. I think we should either go back to lighter text on a dark background for the main body of the text or at least have it as an option.

Lists are all bold

Need to change lists so that they display normally, instead of always bold.

Custom Theme with new Design

We need to update the theme according to the new Design specifics.

You can find informations on how to customize themes for mkdocs on their user-guide at
http://www.mkdocs.org/user-guide/custom-themes/

Therefore the template have to be created into a single directory which contains all needed assets, HTML, CSS, JS and FONTS. This directory should be created next to the mkdocs.yml configuration file in the document root.

The requirement is to disclaim JS if possible. And if JS have to be used it have to be served locally and the Sites usablility should be ensured, even when NoScript browsing is enabled.

You can activate the new template by editing the mkdocs.yml and point to the directory with the following parameters:
theme: null theme_dir: YOU_THEME_DIRECTORY/

CSS: Centering images?

Anyone disapprove of the centering of images? I don't think it's possible to do this via markdown syntax but I know that we can use raw HTML/CSS to insert images in the docs. Can we add a centered img class to the base.css file? Would have to have these properties:

img.centered {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

Remove version number

Technical documentation is continually evolving outside of standard release cycles and as such version numbers are either complex, confusing or plain irrelevant. Github tracks the changes to documentation so I suggest we remove the version number from the footer.

mention testnet in relevant spots

I'm not sure how this would tie in with #38. You would need to provide testnet examples everywhere which is kind of messy. I think it's important to make it clear that you can test/play around with Decred without spending money.

Probably the most relevant section is 'Obtaining DCR' which should mention the new testnet faucet:

https://faucet.decred.org/

Keyboard navigation for search box

The first thing I want to do after typing something in the search box and finding useful results is to hit down arrow or enter to navigate to a selection.

Would anyone else find it useful if I added that?

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.