Skip to content

Commit 68396e9

Browse files
authored
Merge branch 'pre-release' into rem_old
2 parents 863b006 + 3937943 commit 68396e9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+2462
-53
lines changed

docs/src/conf.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
'sphinx.ext.viewcode',
4343
'sphinx.ext.githubpages',
4444
'sphinx.ext.napoleon',
45+
'sphinx_copybutton',
4546
'breathe']
4647

4748
# Add any paths that contain templates here, relative to this directory.
@@ -128,6 +129,12 @@
128129
# Output file base name for HTML help builder.
129130
htmlhelp_basename = 'Roguedoc'
130131

132+
# -- Options for Sphinx Rendering -----------------------------------------
133+
# Sets typehints in both signature and description.
134+
autodoc_typehints = 'both'
135+
# Change class attribute rendering style
136+
napoleon_use_ivar = True
137+
131138

132139
# -- Options for LaTeX output ---------------------------------------------
133140

@@ -185,4 +192,3 @@
185192
# Breath configuration
186193
breathe_projects = { 'rogue' : '../build/doxyxml' }
187194
breathe_default_project = 'rogue'
188-

docs/src/index.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,20 @@
77
Welcome to Rogue's documentation!
88
=================================
99

10+
Rogue is a SLAC Python Based Hardware Abstraction and Data Acquisition System. Look at our :ref:`Introduction` page for information about Rogue.
11+
1012
This is currently a work in progress and updated from the doc_updates
1113
branch of Rogue. New documentation is being added incrementally over time.
1214

15+
Find other helpful links(slack channel, Jira, etc) `on confluence <https://confluence.slac.stanford.edu/spaces/ppareg/pages/610487593/Rogue+Documentation+Notification+Links>`_.
16+
17+
1318
.. toctree::
1419
:maxdepth: 3
1520
:caption: Contents:
1621

22+
introduction/index
23+
tutorials/index
1724
installing/index
1825
pyrogue_tree/index
1926
interfaces/index

docs/src/installing/build.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Package Manager Install
2222
-----------------------
2323

2424
Debian-based systems (Ubuntu 22.04 or later)
25-
########################
25+
############################################
2626

2727
.. code::
2828
@@ -37,7 +37,7 @@ Debian-based systems (Ubuntu 22.04 or later)
3737
$ sudo apt install python3-pyqt5.qtsvg
3838
3939
RHEL-based systems (E.g. Rocky 9)
40-
########################
40+
#################################
4141

4242
.. code::
4343

docs/src/installing/docker.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ GUI On A Linux OS
7070
-v <APP_DIR>:/python \
7171
ghcr.io/slaclab/rogue /python/<APP_NAME>
7272
73-
GUI On A MAX OS
73+
GUI On A MAC OS
7474
===============
7575

7676
First install XQuartz. Then run it from the command line using `open -a XQuartz`. In the XQuartz preferences, go to the “Security” tab and make sure you’ve got “Allow connections from network clients” ticked.

docs/src/installing/firewall.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.. _installing_firewall:
22

3-
####################################
3+
#####################################
44
Rogue and Miniforge behind a firewall
5-
####################################
5+
#####################################
66

77
To install rogue and miniforge behind a firewall you will need an ssl capable https proxy. I have used mitmproxy with success:
88

docs/src/installing/index.rst

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,20 @@
44
Installing & Compiling Rogue
55
============================
66

7-
The recommended method for installing rogue is :ref:`installing_miniforge`.
7+
This section describes how to obtain and install Rogue.
8+
After installation is completed, consider following one of our :ref:`tutorials` to learn the basics.
9+
10+
The recommended method for installing rogue is on Linux systems through :ref:`installing_miniforge`.
11+
If you chose to build rogue from source instead of using miniforge, the following list
12+
is the recommendation for each operating system.
13+
14+
**Note:** rogue installations are not currently supported on mac or windows hardware.
15+
A Linux(Ubuntu) VM or docker image will be required to build rogue.
16+
17+
* Linux - :ref:`installing_full_build`
18+
* Windows - :ref:`installing_docker`
19+
* Mac - :ref:`installing_docker`
820

9-
This section describes how to obtain and install Rogue.
1021

1122
.. toctree::
1223
:maxdepth: 1

docs/src/installing/miniforge.rst

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,18 @@ Installing Rogue With Miniforge
66

77
The following instructions describe how to install a pre-built Rogue package inside an miniforge environment. These instructions are relevant for Linux, Ubuntu on Windows and MacOS.
88

9-
See the section :ref:`installing_windows` for additional steps required for Windows.
9+
Windows installations will require you to install Ubuntu. Reference the section :ref:`installing_windows` for required steps.
10+
Mac is not currently supported for rogue, and a VM or docker image is needed. Proceed to :ref:`installing_docker`.
11+
12+
Instructions for s3df setup are also available on `Confluence <https://confluence.slac.stanford.edu/spaces/ppareg/pages/591664140/Configure+miniforge+conda+and+Rogue+on+S3DF>`.
1013

1114
Getting Miniforge
12-
================
15+
=================
16+
17+
Download and install miniforge if you don't already have it installed on your machine. Choose an install location with a lot of available diskspace (> 5GB).
18+
Miniforge appears to only work reliably in the bash shell.
1319

14-
Download and install miniforge if you don't already have it installed on your machine. Choose an install location with a lot of available diskspace (> 5GB). Miniforge appears to only work reliably in the bash shell.
20+
*Linux*
1521

1622
.. code::
1723
@@ -57,7 +63,7 @@ Alternatively you can install a specific released version of Rogue:
5763
$ conda create -n rogue_v6.5.0 -c conda-forge -c tidair-tag rogue=v6.5.0
5864
5965
Using Rogue In Miniforge
60-
=======================
66+
========================
6167

6268
No additional setup scripts need to be run Rogue in an miniforge environment. To activate and de-activate the Rogue environment you can use the following commands:
6369

@@ -83,7 +89,7 @@ The following command is used to install Rogue inside and existing miniforge env
8389

8490

8591
Updating Rogue In Miniforge
86-
==========================
92+
===========================
8793

8894
If you want to update Rogue, run the following command after activating the Rogue environment
8995

@@ -92,7 +98,7 @@ If you want to update Rogue, run the following command after activating the Rogu
9298
$ conda update rogue -c tidair-tag
9399
94100
Deleting Miniforge Environment
95-
=============================
101+
==============================
96102

97103
Run the following commands to delete the miniforge environment.
98104

docs/src/installing/miniforge_build.rst

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
.. _installing_miniforge_build:
22

3-
==============================
3+
===============================
44
Building Rogue Inside Miniforge
5-
==============================
5+
===============================
66

77
This section provides instructions for downloading and building rogue inside an miniforge environment. These
88
instructions are relevant for Linux
99

1010
Getting Miniforge
11-
================
11+
==================
1212

1313
Download and install miniforge if you don't already have it installed on your machine. Choose an install location with a lot of available diskspace (> 5GB). Miniforge appears to only work reliably in the bash shell.
1414

@@ -33,7 +33,7 @@ Set your local miniforge to use the update solver:
3333
$ conda config --set solver libmamba
3434
3535
Downloading Rogue & Creating Miniforge Environment
36-
=================================================
36+
==================================================
3737

3838
The next step is to download rogue and create a rogue compatible miniforge environment.
3939

@@ -46,14 +46,15 @@ The next step is to download rogue and create a rogue compatible miniforge envir
4646
4747
You now have an miniforge environment named rogue_build which contains all of the packages required to build and run rogue.
4848

49+
You can alternatively clone the git repo with `git clone git@github.com:slaclab/rogue.git`.
4950
To activate this environment:
5051

5152
.. code::
5253
5354
$ conda activate rogue_build
5455
5556
Building Rogue In Miniforge
56-
==========================
57+
============================
5758

5859
Once the rogue environment is activated, you can build and install rogue
5960

@@ -69,7 +70,7 @@ The Rogue build system will automatically detect that it is in a conda environme
6970
within the miniforge rogue environment.
7071

7172
Using Rogue In Miniforge
72-
=======================
73+
=========================
7374

7475
No additional setup scripts need to be run rogue in an miniforge environment. To activate and de-activate the rogue environment you can use the following commands:
7576

@@ -86,7 +87,7 @@ To deactivate:
8687
$ conda deactivate
8788
8889
Updating Rogue In Miniforge
89-
==========================
90+
===========================
9091

9192
If you want to update and re-install rogue, run the following commands.
9293

@@ -101,9 +102,22 @@ If you want to update and re-install rogue, run the following commands.
101102
$ make
102103
$ make install
103104
104-
Deleting Miniforge Environment
105+
Building and Viewing the Docs
105106
=============================
106107

108+
Note: if edits are made to the source files, the full build process needs to be run for changes to reflect in documentation.
109+
110+
.. code::
111+
# build the docs
112+
$ cd ../docs/
113+
$ make html
114+
115+
# view output on web browser
116+
$ google-chrome build/html/index.html
117+
118+
Deleting Miniforge Environment
119+
==============================
120+
107121
Run the following commands to delete the miniforge environment.
108122

109123
.. code::

docs/src/installing/yocto.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.. _installing_yocto:
22

3-
=============================
3+
=========================
44
Setting Up Rogue In Yocto
5-
=============================
5+
=========================
66

77
Step 1 - Create a new application layer
88

docs/src/interfaces/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,7 @@ prototyped in Python and then re-implemented in C++ for performance.
2727
stream/index
2828
memory/index
2929
simulation/index
30+
pyrogue/index
3031
sql.rst
32+
cpp_api.rst
3133

0 commit comments

Comments
 (0)