Creating a New Project
The official docnado installation guide.
V1.0.0
last updated 3 weeks ago on 2018/10/11
Basic Project
To start a new docnado project that uses the existing style, you need to:
- Create a new folder for your documentation. Let's call it
mydocs. - Inside the
mydocsfolder, create another folder calleddocs. - Inside the
mydocsfolder, create aPNGcalledlogo.png. This is used as your project logo. - Inside the
docsfolder create a file calledhome.md. This is the first document your users will see when visiting the documentation. - Create more documents and add meta-data to each one.
Advanced Project
If you want to be able to add custom styles, you can use the --new command that comes with docnado. This will copy all the example documentation and styles into docs and style folders.
$ mkdir ~/documentation_project
$ cd documentation_project
$ docnado --new # copies sample style and docs into working directory
$ docnado # run the server
This will create a basic example of a documentation project using docnado, and demonstrate all of it's useful features. Just run:
$ docnado
* Serving Flask app "docnado.docnado" (lazy loading)
* Environment: production
WARNING: Do not use the development server in a production environment.
Use a production WSGI server instead.
* Debug mode: off
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
And visit http://127.0.0.1:5000 to see docnado in action.
If you make changes to the templates and styles, you will need to rebuild the scss and restart docnado.