Skip to content

Commit 5952f18

Browse files
authored
Merge pull request #15 from chrislupp/feature/documentation
Feature/documentation
2 parents cefc705 + 65bd2f7 commit 5952f18

Some content is hidden

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

69 files changed

+840
-360
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
![Philote](doc/graphics/philote-python.svg)
22

33
[![Unit and Regression Tests](https://github.com/chrislupp/Philote-Python/actions/workflows/tests.yaml/badge.svg)](https://github.com/chrislupp/Philote-Python/actions/workflows/tests.yaml)
4+
[![Deploy Documentation](https://github.com/chrislupp/Philote-Python/actions/workflows/documentation.yaml/badge.svg)](https://github.com/chrislupp/Philote-Python/actions/workflows/documentation.yaml)
45
# Philote-Python
56

67
Python library for using and creating Philote analysis servers.
@@ -19,15 +20,15 @@ The installation process requires the following tools to be installed:
1920
- importlib.resources
2021

2122
Additionally, the following dependencies are required by Philote MDO and will be
22-
installed automatically during the installation process (if not process):
23+
installed automatically during the installation process:
2324

2425
- numpy
2526
- grpcio
2627

2728

2829
## Installation
2930

30-
The Philote MDO Python bindings require a two step installation process. First,
31+
The Philote MDO Python library requires a two step installation process. First,
3132
make sure that `grpcio-tools` and `protoletariat` are installed. If not, they
3233
can be installed using pip. Note, that the first step of the installation
3334
process will not complete without these tools. Unlike the other dependencies,
@@ -59,7 +60,7 @@ version of gRPC that you have installed) and make it discoverable on your PATH.
5960

6061
This package is licensed under the Apache 2 license:
6162

62-
Copyright 2022-2023 Christopher A. Lupp
63+
Copyright 2022-2024 Christopher A. Lupp
6364

6465
Licensed under the Apache License, Version 2.0 (the "License");
6566
you may not use this file except in compliance with the License.

doc/_config.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
title: Philote-Python
55
author: Christopher A. Lupp
66
logo: graphics/philote-python.svg
7-
copyright: 2022-2023
7+
copyright: 2022-2024
88

99
# Force re-execution of notebooks on each build.
1010
# See https://jupyterbook.org/content/execute.html
@@ -53,3 +53,7 @@ html:
5353
sphinx:
5454
extra_extensions:
5555
- 'sphinx.ext.autodoc'
56+
- 'sphinx.ext.napoleon'
57+
- 'sphinx.ext.viewcode'
58+
config:
59+
add_module_names: False

doc/_toc.yml

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,27 @@
33

44
format: jb-book
55
root: intro
6-
chapters:
7-
- file: tutorials/quickstart
8-
- file: tutorials/explicit_disciplines
9-
- file: tutorials/openmdao
10-
- file: tutorials/csdl
6+
parts:
7+
- caption: Getting Started
8+
chapters:
9+
- file: installation
10+
- file: tutorials/quickstart
11+
12+
- caption: Tutorials
13+
chapters:
14+
- file: tutorials/explicit_disciplines
15+
- file: tutorials/implicit_disciplines
16+
- file: tutorials/units
17+
18+
- caption: Working with OpenMDAO
19+
chapters:
20+
- file: tutorials/openmdao
21+
22+
- caption: Working with CSDL
23+
chapters:
24+
- file: tutorials/csdl
25+
26+
#- caption: API Reference
27+
# chapters:
28+
# - file: api/explicit
1129

doc/api/explicit.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Explicit Discipline
2+

doc/graphics/philote-logo.svg

Lines changed: 77 additions & 0 deletions
Loading

doc/graphics/philote-python.svg

Lines changed: 117 additions & 109 deletions
Loading

doc/graphics/philote_logo.svg

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

doc/installation.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Installation
2+
3+
Philote-Python is a pure Python library. However, the installation process requires a few extra steps,
4+
as the gRPC/protobuf definitions must first be compiled into
5+
6+
7+
## Requirements
8+
9+
The installation process requires the following tools to be installed:
10+
11+
- grpcio-tools
12+
- protoletariat
13+
- importlib.resources
14+
15+
Additionally, the following dependencies are required by Philote MDO and will be
16+
installed automatically during the installation process:
17+
18+
- numpy
19+
- grpcio
20+
21+
22+
## Compiling Definitions and Installation
23+
24+
The Philote MDO Python library requires a two step installation process. First,
25+
make sure that `grpcio-tools` and `protoletariat` are installed. If not, they
26+
can be installed using pip. Note, that the first step of the installation
27+
process will not complete without these tools. Unlike the other dependencies,
28+
pip will not automatically install them during the package build. The first step
29+
is to compile the protobuf/gRPC files into python files. This is done by running
30+
(from the repository directory):
31+
32+
python setup.py compile_proto
33+
34+
Once this step completes successfully, the package can be installed using pip:
35+
36+
pip install .
37+
38+
or
39+
40+
pip install -e .
41+
42+
for a development install.

doc/intro.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
# Philote-Python
22

3-
This is a small sample book to give you a feel for how book content is
4-
structured.
5-
It shows off a few of the major file types, as well as some sample content.
6-
It does not go in-depth into any particular topic - check out [the Jupyter Book documentation](https://jupyterbook.org) for more information.
73

8-
Check out the content pages bundled with this sample book to see more.
94

105
:::{tableofcontents}
116
:::

doc/tutorials/csdl.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
(tutorials:csdl)=
2-
# Calling Philote Disciplines from CSDL
2+
# Calling Philote Disciplines from CSDL
3+
4+
This feature is a work in progress and not yet complete.

0 commit comments

Comments
 (0)