Skip to content

Commit 365e801

Browse files
committed
Merge branch 'feature/update-documentation-for-building-the-documentation' into 'main'
Add documentation for building the documentation See merge request belle2/software/display!12
2 parents 871b849 + 860a3af commit 365e801

File tree

6 files changed

+48
-91
lines changed

6 files changed

+48
-91
lines changed

docs/Makefile

Lines changed: 0 additions & 20 deletions
This file was deleted.

docs/make.bat

Lines changed: 0 additions & 35 deletions
This file was deleted.

docs/requirements.txt

Lines changed: 0 additions & 30 deletions
This file was deleted.

docs/source/developer.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ The source code for the Belle II Event Display with Phoenix project is stored in
1919
./developer/modules.rst
2020
./developer/event_display.rst
2121
./developer/server.rst
22+
./developer/documentation.rst
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
Building the Documentation
2+
==========================
3+
4+
To build this documentation and view it, please follow the steps below.
5+
6+
1. Create a Python virtual environment:
7+
8+
.. code-block:: console
9+
10+
$ python3 -m venv display-env
11+
12+
2. Activate the virtual environment:
13+
14+
.. code-block:: console
15+
16+
$ source display-env/bin/activate
17+
18+
3. Install **Sphinx** and all the other required packages:
19+
20+
.. code-block:: console
21+
22+
$ pip3 install -r requirements-docs.txt
23+
24+
4. Build the documentation:
25+
26+
.. code-block:: console
27+
28+
$ sphinx-build docs/source/ docs/build
29+
30+
5. Open the documentatio with your web browser. The entry point to the documentation is
31+
``docs/build/index.html``.

docs/source/developer/installation.rst

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Installation
55

66
For developers, to set up the local environment, please follow the steps below.
77

8-
1. **Install Node.js** on your system. You can download the latest version of Node.js from the
8+
1. Install **Node.js** on your system. You can download the latest version of Node.js from the
99
`official website`_.
1010

1111
Note that the recommended version of Angular CLI (see below) requires a minimum Node.js version
@@ -14,13 +14,13 @@ For developers, to set up the local environment, please follow the steps below.
1414
.. _official website: https://nodejs.org/en/download
1515

1616

17-
2. **Install Angular CLI** globally by running the following command:
17+
2. Install **Angular CLI** globally:
1818

1919
.. code-block:: console
2020
2121
$ npm install -g @angular/[email protected]
2222
23-
3. **Clone the git repository** by running the following command:
23+
3. Clone the Git repository:
2424

2525
.. code-block:: console
2626
@@ -32,8 +32,18 @@ For developers, to set up the local environment, please follow the steps below.
3232
3333
$ cd display
3434
35-
5. Run ``npm install`` to install the necessary dependencies.
35+
5. Install the necessary dependencies:
3636

37-
6. Run ``npm start`` or ``ng serve`` to start the development server.
37+
.. code-block:: console
38+
39+
$ npm ci
40+
41+
6. Start the development server:
42+
43+
.. code-block:: console
44+
45+
$ npm start
3846
39-
7. Navigate to ``http://localhost:4200/`` in your web browser to view the application.
47+
7. Navigate to ``http://localhost:4200/`` in your web browser to view the application. In case the
48+
port ``4200`` is already used by other services, the application reports which port to use via
49+
log message.

0 commit comments

Comments
 (0)