MilesCranmer commited on
Commit
82165dd
2 Parent(s): d045586 bcaeda2

Merge pull request #247 from MilesCranmer/interactive-api

Browse files
.github/workflows/docs.yml CHANGED
@@ -27,7 +27,7 @@ jobs:
27
  python-version: 3.9
28
  cache: pip
29
  - name: "Install packages for docs building"
30
- run: pip install mkdocs-material mkdocs-autorefs 'mkdocstrings[python]' docstring_parser
31
  - name: "Install PySR"
32
  run: pip install -e .
33
  - name: "Build API docs"
 
27
  python-version: 3.9
28
  cache: pip
29
  - name: "Install packages for docs building"
30
+ run: pip install -r docs/requirements.txt
31
  - name: "Install PySR"
32
  run: pip install -e .
33
  - name: "Build API docs"
docs/interactive-docs.md ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ # Interactive Reference ⭐
2
+
3
+ <!-- Display content from `astroautomata.com/pysr_interactive` -->
4
+
5
+ The following docs are interactive, and, based on your selections,
6
+ will create a snippet of Python code at the bottom which you can execute locally.
7
+ Note that this is an incomplete list of options; for the full list,
8
+ see the [API Reference](api.md).
9
+
10
+ <embed src="https://astroautomata.com/pysr_interactive" width="100%" height="2000px" />
docs/requirements.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ mkdocs-material
2
+ mkdocs-autorefs
3
+ mkdocstrings[python]
4
+ docstring_parser
mkdocs.yml CHANGED
@@ -34,6 +34,7 @@ nav:
34
  - api.md
35
  - api-advanced.md
36
  - backend.md
 
37
 
38
  extra:
39
  homepage: https://astroautomata.com/PySR
 
34
  - api.md
35
  - api-advanced.md
36
  - backend.md
37
+ - interactive-docs.md
38
 
39
  extra:
40
  homepage: https://astroautomata.com/PySR