Coder Social home page Coder Social logo

phoebus-docs_zh-cn's Introduction

Phoebus Documentation

Documentation for https://github.com/ControlSystemStudio/phoebus

View latest snapshot at https://control-system-studio.readthedocs.io

You can build a local copy using a local installation of sphinx or with maven

Option 1. You need to install sphinx

   # Standard way
   pip install Sphinx

   # Some RedHat setups
   sudo yum install python-sphinx

Then build the web version:

   make clean html

Option 2.

   mvn verify -P sphinx -N

The above creates a document tree starting with build/html/index.html.

As detailed below, the documentation includes components from the phoebus source code tree, which in turn may include generated HTML content. The complete documentation build process therefore is:

# Obtain sources for Documentation and Product
git clone https://github.com/ControlSystemStudio/phoebus.git

# Build the Javadoc, i.e. html files to be included in the manual
( cd phoebus/app/display/editor; ant -f javadoc.xml clean all )

# Building the documentation
( cd phoebus/doc; make clean html )

When then building the Phoebus UI product, it will incude the document tree as online help accessible via the Help menu.

Documentation Components

  1. Top-Level Documentation

    The files in this repository, i.e. the files in phoebus/doc/source, starting with index.rst, form the basis of the documentation tree, meant to provide the top-level documentation.

    For details on the *.rst file format, refer to the ReStructured Text reference, see http://www.sphinx-doc.org/en/stable/rest.html

  2. Phoebus Module Documentation

    The ../phoebus/core, ../phoebus/app and ../phoebus/services folders are checked for doc/index.rst files to include. This allows Phoebus source code to contribute to the documentation. For example, application modules will be added to the "Applications" section of the top-level documentation.

    Additionally, the folders are also checked for doc/images/ folders. Resources used by the index.rst files should be places in this folder to ensure they are available to sphinx to generate the documenation.

  3. Preference Descriptions

    The content of all ../phoebus/**preferences.properties files is added to a "Preferences Listing" appendix of the documentation, with a generated listing of preference packages.

    The preference file should start with a # Package ... header to allow listing it in the table of contents.

    Example:

    # --------------------------------
    # Package the.phoebus.package.name
    # --------------------------------
    
    # Description of some setting
    the_setting = default_value
    
  4. Plain HTML

    The content of all ../phoebus/**/doc/html folders is copied into the henerated html output directory tree.

    This allows including existing HTML content "as is". An index.rst file in the corresponding phoebus module may then refer to it via raw link directives. See ../phoebus/app/display/editor/doc for an example.

    The inclusion of plain HTML content is meant to allow adding for example Java Doc that is auto-generated, where it would be impractical to rewrite the information as *.rst. Note that the direct inclusion of existing HTML content is only possible when the *.rst files are rendered as HTML, in which case raw directives can then link them to the documentation. When the *.rst files are rendered via LaTeX or PDF, plain HTML content is ignored.

    Whenever possible, documentation should thus use the *.rst file format and be included via the first two options.

For technical details on how the document components are assembled, check createAppIndex() and createPreferenceAppendix() in source/conf.py.

phoebus-docs_zh-cn's People

Watchers

 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.