Code Monkey home page Code Monkey logo

p3_docs's Introduction

PATRIC Documentation Repo

This repository is for manage PATRIC static contents such as Website Tutorial, CLI Tutorial, User Guides, and PATRIC eNews. See here for configuration.

Nginx

After following the Sphinx/Nginx Setup Guide make sure your local Nginx server is running.

sudo nginx

And enter your password. You'll need to turn this on everytime you restart your computer unless you have it set to start automatically.

How to add an entry

  1. Create a folder. If you don't have image associated, then you can ommit the images folder.
mkdir -p tutorial/excel_formatting/images/
  1. Make a markdown or ReST (ReStructuredText) format file

  2. Place images under ./images sub folder

  3. If you have a file attachment to link, place the file in the '_static' directory, and reference it from there. (Sphinx will ignore attachment files such as .PDF, .XLSX, etc)

  4. Add a link in the category index file (e.g. tutorial/index.rst)

  5. build html

$ make html

Note: You may need to completely clear your previously built docs application to see new changes made. You can run this command to delete and rebuild from within the docroot directory.

rm -rf _build && make html

How to add a News entry

In order to generate feed RSS, you need to write the news entries in rst format. Check a sample entry here

  1. Follow the instruction for creating a file & linking
  2. For news entries, you need to add a code block like below,
.. feed-entry::
   :date: 2017-09-30

   Add description (a line or two) regarding the news item here. This will show up in the home page.

.. cut::
  1. When you build html, news.rss will be updated.

Resources

We write our documentation pages in both Markdown (.md) and reStructuredText (.rst). Sphinx uses the CommonMark version of Markdown when it builds the documentation site. It is slightly different than the GitHub Flavored MarkDown used by GitHub so make sure to take note of any subtle differences. Use these resources to write and develop documentation for PATRIC without causing warnings or failures. There is only one flavor of reStructuredText.

Markdown

reStructuredText

p3_docs's People

Contributors

chris-c-thomas avatar hyoo avatar mshukla1 avatar olsonanl avatar bparrello avatar nconrad avatar chmao1 avatar aswarren avatar mandywil 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.