Skip to content

Commit

Permalink
add instructions for dev container
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Dec 6, 2023
1 parent 3bf5533 commit 4c99dff
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

ReSolve is a library of GPU-resident linear solver. It contains iterative and direct linear solvers designed to run on NVIDIA and AMD GPUs, as well as on CPU devices.

ReadTheDocs Documentation lives here https://ornl.github.io/ReSolve/
ReadTheDocs Documentation lives here https://resolve.readthedocs.io/en/develop/

## Getting started

Expand Down
24 changes: 23 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,31 @@ call the preset flag in the cmake build step.
cmake -B build --preset cluster
Support
Developing Documentation Using Dev Container
-------

Prerequisites

1. install Docker Desktop and launch the app
2. install the "Remote Development" extension in VSCode
3. open your local clone of resolve in VSCode

Build Container

The build info for this container is in `.devcontainer/`. There is a Dockerfile and json file associated with the configuration.

1. if connected, disconnect from the PNNL VPN
2. launch the container build
* `cmd shift p` to open the command pallette in vscode
* click `> Dev Container: rebuild and reopen container`
* this will start building the container, taking about 40 minutes
* click on the pop up with `(show log)` to view the progress

3. Open new terminal within VSCODe and run the renderDocs.sh (note this takes a minute)
4. Open the link that was served to you after step 3

Note - pushing/pulling from git is not supported in a devcontainer, and should be done independently.

For any questions or to report a bug please submit a `GitHub
issue <https://github.com/ORNL/ReSolve/issues>`__.

Expand Down
2 changes: 1 addition & 1 deletion renderDocs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ sphinx-build . ./sphinx/_build &&
doxygen ./doxygen/Doxyfile.in &&
# Host the docs locally with python
python3 -m http.server --directory ./sphinx/_build
popd
popd

0 comments on commit 4c99dff

Please sign in to comment.