################################## The Open-PSA Model Exchange Format ##################################
.. image:: https://travis-ci.org/open-psa/mef.svg?branch=master :target: https://travis-ci.org/open-psa/mef .. image:: https://circleci.com/gh/open-psa/mef/tree/master.svg?style=svg :target: https://circleci.com/gh/open-psa/mef/tree/master
|
This repository hosts source text files for the Open-PSA Model Exchange Format.
Note that no dependency is required to edit the text source of the standard; a basic text editor suffices to work with the source files. All building is done automatically on Travis-CI upon your pull request to verify successful generations in various target formats.
A list of dependencies:
==================== =============== Package Minimum Version ==================== =============== Python 2.7 or 3.4 Sphinx 1.5.1 sphinx_rtd_theme 0.1.10 Pygments 2.2 LaTeX Inkscape git zip ==================== ===============
To install all the dependencies with apt
and pip
(assuming already installed Python and git):
.. code-block:: bash
sudo apt-get install texlive{,-{fonts-recommended,latex-extra,xetex}} inkscape
sudo pip install sphinx sphinx_rtd_theme
To generate a PDF document:
.. code-block:: bash
make latexpdf
To generate HTML files (the website at the gh-pages branch):
.. code-block:: bash
make html
Semantic Linefeeds
_ (i.e., one sentence per line)#
overlined and underlined*
overlined and underlined=
, -
, ~
, ^
, +
-
, *
, +
.. _Semantic Linefeeds: http://rhodesmill.org/brandon/2012/one-sentence-per-line/
Prepend a reference name with the type of the object (a la the Hungarian notation) for clarity and consistency of in-text references. If there's no prefix in a reference, the target is assumed to be the specification or section itself.
For example, an image (figure), table, XML description, RNC schema of the fault tree specification:
.. code-block:: rst
.. figure:: images/fault_tree.svg
:name: fig_fault_tree
Fault tree diagram
.. table:: The fault tree specification
:name: table_fault_tree
+-------+------+
| Fault | Tree |
+=======+======+
.. code-block:: rnc
:name: schema_fault_tree
fault_tree = graph
.. code-block:: xml
:name: xml_fault_tree
<define-fault-tree/>
To reference the fault tree specification itself:
.. code-block:: rst
.. _fault_tree:
**********
Fault Tree
**********
The fault tree specification, description, text, ...
Sphinx reStructuredText Primer <http://www.sphinx-doc.org/en/stable/rest.html>
_Spinx reST Miscellaneous <http://www.sphinx-doc.org/en/stable/markup/misc.html>
_reStructuredText User Documentation <http://docutils.sourceforge.net/rst.html>
_reST Cheat Sheet <http://docutils.sourceforge.net/docs/user/rst/cheatsheet.txt>
_reST Quick Reference <http://docutils.sourceforge.net/docs/user/rst/quickref.html>
_Short Math Guide for LaTeX <http://www.math.ucsd.edu/~jeggers/latex/short-math-guide.pdf>
_RELAX NG Compact Tutorial <http://relaxng.org/compact-tutorial-20030326.html>
_by merging or rebasing your topic branch on top of the master. Rebasing is highly recommended for streamlining the history. However, DO NOT rebase any commits that have been pulled/pushed anywhere else other than your own fork.
pull request
_ from your topic branch to the upstream master branch... _pull request: https://help.github.com/articles/using-pull-requests/
Git SCM <http://git-scm.com/>
_Writing Good Commit Messages <https://github.com/erlang/otp/wiki/Writing-good-commit-messages>
_On Commit Messages <http://who-t.blogspot.com/2009/12/on-commit-messages.html>
_Atomic Commit <https://en.wikipedia.org/wiki/Atomic_commit#Atomic_commit_convention>
_Branching Model <http://nvie.com/posts/a-successful-git-branching-model/>
_