-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docs for NelderMeadSampler (#397)
* uploaded installation.md * fixed descriptions wrt Linux and ABCI. * fixed links. * added descriptions wrt macOS. * fixed installation.md * mkdir installation mv installation.md installation * added auto_formatting_guide.md to contribution_guide directory. * deleted black space * added Makefile * added installation_en.md * fixed installation_en.md * added auto_formatting_guide_en.md * fixed error wrt ruff * fixed errors wrt ruff * Add docs for nm.(WIP) * Add docs/source/hpo. * Add Sphinx documents. * Delete docs/source/api_reference. * Add docs/source/api_reference in .gitignore. * Add publish_pages.yaml. * Delete japanese in docstring. * Change html_theme to pydata. * Delete japanese. * Remove files. * Split API reference. * Add logo. * Fix for ruff and mypy. * Update hpo.md * Fix typo. * Add --maxdepth option. * Delete html. * Remove sphinx_rtd_theme. * Resize logo. * Fixed to upper case. * Change document structure. * Add contribution_guide(WIP). * Add api_reference/index.rst. * Add user_guide(WIP) * Remove unnecessary sentences. * Remove docs/source/api_reference/*.md. * Integrate contribution_guide. * Split user_guide. * Adjust html_sidebars. * Fix for ruff. * Update installation.md * Update index.rst * Update and rename docs/source/installation/installation.md to docs/source/getting_started.md * Update aiaccel/hpo/algorithms/nelder_mead_algorithm.py Co-authored-by: Yoshiaki Bando <yoshipon@users.noreply.github.com> * Add logo_aiaccel_padding.png. * Integrate neldermeadsampler_en.md. * Delete unnecessary files. * Add sphinx.ext.doctest. * Remove cp index.html . --------- Co-authored-by: 3bisuoka <ebisuoka-ryoya@aist.go.jp> Co-authored-by: Yoshiaki Bando <yoshipon@users.noreply.github.com>
- Loading branch information
1 parent
5561523
commit b6d43f6
Showing
16 changed files
with
302 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Publish on GitHub Pages | ||
|
||
on: | ||
[push, pull_request, workflow_dispatch] | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install .[dev,github-actions,test] | ||
- name: Sphinx build | ||
run: | | ||
sphinx-apidoc --maxdepth 2 -f -o ./docs/source/api_reference/ ./aiaccel/ | ||
cd docs | ||
make html | ||
- name: Deploy to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/feature/main' }} | ||
with: | ||
publish_branch: gh-pages | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: docs/build/html | ||
force_orphan: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Minimal makefile for Sphinx documentation | ||
# | ||
|
||
# You can set these variables from the command line, and also | ||
# from the environment for the first two. | ||
SPHINXOPTS ?= | ||
SPHINXBUILD ?= sphinx-build | ||
SOURCEDIR = source | ||
BUILDDIR = build | ||
|
||
# Catch-all target: route all unknown targets to Sphinx using the new | ||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | ||
%: Makefile | ||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
@ECHO OFF | ||
|
||
pushd %~dp0 | ||
|
||
REM Command file for Sphinx documentation | ||
|
||
if "%SPHINXBUILD%" == "" ( | ||
set SPHINXBUILD=sphinx-build | ||
) | ||
set SOURCEDIR=source | ||
set BUILDDIR=build | ||
|
||
if "%1" == "" goto help | ||
|
||
%SPHINXBUILD% >NUL 2>NUL | ||
if errorlevel 9009 ( | ||
echo. | ||
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx | ||
echo.installed, then set the SPHINXBUILD environment variable to point | ||
echo.to the full path of the 'sphinx-build' executable. Alternatively you | ||
echo.may add the Sphinx directory to PATH. | ||
echo. | ||
echo.If you don't have Sphinx installed, grab it from | ||
echo.http://sphinx-doc.org/ | ||
exit /b 1 | ||
) | ||
|
||
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% | ||
goto end | ||
|
||
:help | ||
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% | ||
|
||
:end | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
************* | ||
API Reference | ||
************* | ||
|
||
* :ref:`genindex` | ||
* :ref:`modindex` | ||
|
||
---- | ||
|
||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
aiaccel.app | ||
aiaccel.hpo | ||
aiaccel.job | ||
aiaccel.torch | ||
aiaccel.utils |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
# Configuration file for the Sphinx documentation builder. | ||
# | ||
# This file only contains a selection of the most common options. For a full | ||
# list see the documentation: | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html | ||
|
||
# -- Path setup -------------------------------------------------------------- | ||
|
||
# If extensions (or modules to document with autodoc) are in another directory, | ||
# add these directories to sys.path here. If the directory is relative to the | ||
# documentation root, use os.path.abspath to make it absolute, like shown here. | ||
# | ||
from pathlib import Path | ||
import sys | ||
|
||
root_path = Path(__file__).parent.parent.parent | ||
sys.path.insert(0, str(root_path.absolute())) | ||
|
||
# -- Project information ----------------------------------------------------- | ||
|
||
project = "aiaccel" | ||
project_copyright = "2024, AIST" | ||
author = "AIST" | ||
|
||
# The full version, including alpha/beta/rc tags | ||
release = "2.0.0" | ||
html_logo = f"{root_path}/docs/image/logo_aiaccel_padding.png" | ||
|
||
# -- General configuration --------------------------------------------------- | ||
|
||
# Add any Sphinx extension module names here, as strings. They can be | ||
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom | ||
# ones. | ||
extensions = [ | ||
"sphinx.ext.autodoc", | ||
"sphinx.ext.githubpages", | ||
"sphinx.ext.napoleon", | ||
"sphinx.ext.todo", | ||
"sphinx.ext.viewcode", | ||
"sphinx_fontawesome", | ||
"myst_parser", | ||
"pydata_sphinx_theme", | ||
"sphinx.ext.doctest", | ||
] | ||
|
||
# Add any paths that contain templates here, relative to this directory. | ||
templates_path = ["_templates"] | ||
|
||
# List of patterns, relative to source directory, that match files and | ||
# directories to ignore when looking for source files. | ||
# This pattern also affects html_static_path and html_extra_path. | ||
exclude_patterns = [ | ||
"_build", | ||
"Thumbs.db", | ||
".DS_Store", | ||
] | ||
|
||
# Auto-generated header anchors | ||
# The MyST Parser can automatically generate label “slugs” for header anchors | ||
# so that you can reference them from markdown links. For example, you can use | ||
# header bookmark links, locally; [](#header-anchor), or cross-file | ||
# [](path/to/file.md#header-anchor). To achieve this, use the | ||
# myst_heading_anchors = DEPTH configuration option, where DEPTH is the depth | ||
# of header levels for which you wish to generate links. | ||
# (commentout) myst_heading_anchors = 3 | ||
|
||
# -- Options for HTML output ------------------------------------------------- | ||
|
||
# The theme to use for HTML and HTML Help pages. See the documentation for | ||
# a list of builtin themes. | ||
# | ||
html_theme = "pydata_sphinx_theme" | ||
html_show_sourcelink = False | ||
html_show_sphinx = False | ||
# (commentout) html_static_path = ["_static"] | ||
html_sidebars = {"**": ["search-field", "sidebar-nav-bs", "sourcelink.html"]} | ||
source_suffix = {".rst": "restructuredtext", ".txt": "markdown", ".md": "markdown"} | ||
|
||
# Add any paths that contain custom static files (such as style sheets) here, | ||
# relative to this directory. They are copied after the builtin static files, | ||
# so a file named "default.css" will overwrite the builtin "default.css". | ||
# (commentout) html_static_path = ['_static'] | ||
|
||
language = "en" | ||
|
||
# -- Extension configuration ------------------------------------------------- | ||
# (commentout) todo_include_todos = True | ||
# (commentout) autoclass_content = "both" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Contribution Guide | ||
|
||
(WIP) |
Oops, something went wrong.