Skip to content
forked from PATRIC3/p3_docs

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

Notifications You must be signed in to change notification settings

mandywil/p3_docs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 62.8%
  • HTML 14.5%
  • Batchfile 9.3%
  • Makefile 6.9%
  • Perl 6.5%