Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ build:
jobs:
create_environment:
- asdf plugin add pixi
- asdf install pixi latest
- asdf global pixi latest
- asdf install pixi 0.83.0
- asdf global pixi 0.83.0
install:
- pixi install --locked -e docs
post_build:
- pixi run -e docs build-docs
- pixi run --locked -e docs build-docs
# The exporter can log a failed Markdown subprocess without failing Sphinx.
- test -s docs/build/html/llms.txt
- mkdir --parents $READTHEDOCS_OUTPUT/html/
- cp -a docs/build/html/. "$READTHEDOCS_OUTPUT/html" && rm -r docs/build
15 changes: 14 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,16 @@
"sphinx_design",
"sphinxcontrib.mermaid",
"sphinx_llm.txt",
"sphinx_llms_txt",
]

# Reuse the HTML doctrees so Markdown generation does not execute notebooks again.
llms_txt_build_parallel = False
llms_txt_full_build = False
llms_txt_description = (
"Documentation for optimagic, a Python package for numerical optimization."
)
markdown_http_base = os.environ.get("READTHEDOCS_CANONICAL_URL", "")

myst_enable_extensions = [
"colon_fence",
"dollarmath",
Expand Down Expand Up @@ -174,6 +181,12 @@
# -- Options for myst-nb ----------------------------------------
nb_execution_mode = "force" # "off", "force", "cache", "auto"
nb_execution_allow_errors = False
nb_execution_raise_on_error = True
# Preserve notebook text outputs in sphinx-llm's Markdown builder.
nb_mime_priority_overrides = [
("llms-markdown", "text/markdown", 10),
("llms-markdown", "text/plain", 20),
]
nb_merge_streams = True
nb_scroll_outputs = True

Expand Down
3 changes: 3 additions & 0 deletions docs/source/how_to/how_to_add_optimizers.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -421,10 +421,13 @@
" needs_jac=False,\n",
" # does the optimizer need the hessian? -> no, gaco is derivative free\n",
" needs_hess=False,\n",
" # does the optimizer require finite bounds? -> yes\n",
" needs_bounds=True,\n",
" # does the optimizer support parallelism? -> yes\n",
" supports_parallelism=True,\n",
" # does the optimizer support bounds? -> yes\n",
" supports_bounds=True,\n",
" supports_infinite_bounds=False,\n",
" # does the optimizer support linear constraints? -> no\n",
" supports_linear_constraints=False,\n",
" # does the optimizer support nonlinear constraints? -> no\n",
Expand Down
2 changes: 1 addition & 1 deletion docs/source/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#
# optimagic

<div style="padding-top: 50px;">
</div>
Expand Down
59 changes: 24 additions & 35 deletions pixi.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -471,8 +471,7 @@ sphinx = ">=8.2.3"
sphinxcontrib-bibtex = "*"
sphinx-copybutton = "*"
sphinx-design = "*"
sphinx-llm = "*"
sphinx-llms-txt = "*"
sphinx-llm = ">=1.1.0"
ipython = "*"
ipython_genutils = "*"
myst-nb = "*"
Expand All @@ -485,7 +484,7 @@ sphinxcontrib-mermaid = "*"
intersphinx-registry = "*"

[tool.pixi.feature.docs.tasks]
build-docs = { cmd = "make html", cwd = "docs", description = "Build the HTML documentation" }
build-docs = { cmd = "make html SPHINXOPTS=-T", cwd = "docs", description = "Build the HTML documentation" }

# --- Compat features (version overrides for backward-compat CI) ---------------------
[tool.pixi.feature.old-plotly.dependencies]
Expand Down
Loading