Kevin Putnam 97cc3cfbbd Update landing page (#975)
* 1. Updated landing page to emulate look and feel of docs page on clearlinux.org
2. Added Trademarks, Cookies, and Privacy Terms links to footer with some css formatting
3. Added some CSS to pre-emptively remove added formatting to definition list entries in sphinx/rtd theme in version 2 and above

Signed-off-by: Kevin Putnam <kevin.putnam@intel.com>

* Added start/end for footer bullet list support

Signed-off-by: Kevin Putnam <kevin.putnam@intel.com>

* 1. Hid toctree to reduce duplication.
2. Changed IRC link to match what is currently on the clearlinux.org site.

Signed-off-by: Kevin Putnam <kevin.putnam@intel.com>
2020-01-06 15:50:59 -08:00
2020-01-06 15:50:59 -08:00
2018-07-23 16:02:15 -07:00
2015-10-12 15:39:17 -06:00

Documentation build instructions
################################

.. todo add comment re not using standards here.

`Clear Linux\* OS documentation`_ is written using `reStructuredText`_ and
built using `Sphinx`_. Follow the instructions in this README to build the
documentation locally for development and testing.

Please make yourself familiar with our `contribution guidelines`_ before
submitting a contribution.

Clone the documentation repository
**********************************

Clone the documentation repository to your local machine.

.. code-block:: bash

   git clone https://github.com/clearlinux/clear-linux-documentation

Requirements
************

Make sure you have Python 3 installed to start.

The Sphinx documentation provides `instructions for installing Sphinx`_
on various platforms.

Use pip3 to install additional Python dependencies listed in the
requirements.txt file found in the repository:

.. code-block:: bash

   pip3 install -r requirements.txt

Run the build
*************

We build our documentation using Sphinx. In the source directory of your
local clear-linux-documentation repository, preview changes to the
documentation by building the docs in the default language (English) by
running ``make html``:

.. code-block:: bash

   make html

.. code-block:: console

   sphinx-build -b html -d _build/doctrees   . _build/html
   Running Sphinx v1.8.0
   making output directory...
   .
   .
   .
   build succeeded, 0 warnings.

   The HTML pages are in _build/html.

   Build finished. The HTML pages are in _build/html.

Open one of the HTML pages found in ``source/_build/html`` in a web browser
to view the rendered documentation.

If you want to build the documentation exactly as seen on the website, use
``make py`` followed by ``make htmlall``. This builds some
external dependencies and all supported languages.

Use virtualenv 
**************

To develop documentation in a ``virtualenv``, use the ``venv`` target.
The Clear Linux OS documentation make target ``venv`` provides a 
simple development environment that ensures that you have the 
latest packages and that you manage Python versions separately. Use of the 
``virtualenv`` requires **Python 3.6** or higher. For Windows examples below, use Powershell as an Administrator.

The **virtual environment** uses the same version of Python that was used to **create the virtual environment**. 

Verify ``pip`` is installed. A file path to pip should appear. 

On Clear Linux OS and macOS\*:

.. code-block:: bash

   which pip
   
On Windows\* 10 OS: 

.. code-block:: bash

   pip --version

If ``pip`` is not installed, install it. 

On Clear Linux OS and macOS:

.. code-block:: bash

   python3 -m pip install --user --upgrade pip

On Windows 10 OS: 

.. code-block:: bash

   py -m pip install --upgrade pip

.. note::

   This assumes Python was already added to your Windows path. 

Install virtualenv 
==================

Install ``virtualenv``. 

On Clear Linux OS and macOS\*:

.. code-block:: bash

   python3 -m pip install --user virtualenv

On Windows 10 OS: 

.. code-block:: bash

   py -m pip install --user virtualenv

Create the ``virtualenv`` and install the required packages: 

.. code-block:: bash

   make venv

Activate the ``venv``. 

.. code-block:: bash

   source venv/bin/activate

Follow `Run the build`_ section to start developing documentation.

Remove the ``venv`` when finished developing.  

.. code-block:: bash

   deactivate

Additional help
***************

Cleaning up
===========

When testing changes in the documentation, make sure to remove the previous
build before building again by running ``make clean``:

.. code-block:: bash

   make clean

This will completely remove the previous build output, including artifacts 
from the `make venv` target when done outside an active venv.

Convenience script
==================

This bash script (Linux only) includes both ``make clean`` and
``make html``. It also starts a simple Python web server that
displays a preview of the site at http://localhost:8000 on your local machine.

.. code-block:: bash

   ./checkwork.sh

To stop the web server simply use ``ctrl-c``.

.. _Clear Linux\* OS documentation:  https://docs.01.org/clearlinux/
.. _Sphinx: http://sphinx-doc.org/
.. _reStructuredText: http://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html
.. _contribution guidelines: https://docs.01.org/clearlinux/latest/collaboration/collaboration.html
.. _instructions for installing Sphinx: https://www.sphinx-doc.org/en/master/usage/installation.html

S
Description
No description provided
Readme 132 MiB
Languages
JavaScript 27.3%
Python 23.4%
HTML 21.3%
CSS 14.3%
Makefile 7.3%
Other 6.4%