Commit 7bb480cb authored by nd-02110114's avatar nd-02110114
Browse files

♻️ refactor docs

parent 7e745b93
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -7,11 +7,7 @@ version: 2

# Build documentation in the docs/ directory with Sphinx
sphinx:
  configuration: docs/conf.py

# Build documentation with MkDocs
# mkdocs:
#   configuration: mkdocs.yml
  configuration: docs/source/conf.py

# Optionally build your docs in additional formats such as PDF and ePub
formats: all
@@ -20,4 +16,4 @@ formats: all
python:
  version: 3.7
  install:
    - requirements: docs/requirements.txt
    - requirements: requirements-docs.txt
+2 −2
Original line number Diff line number Diff line
@@ -5,8 +5,8 @@
# from the environment for the first two.
SPHINXOPTS    ?=
SPHINXBUILD   ?= sphinx-build
SOURCEDIR     = .
BUILDDIR      = _build
SOURCEDIR     = source
BUILDDIR      = build

# Put it first so that "make" without argument is like "make help".
help:
+7 −5
Original line number Diff line number Diff line
@@ -11,13 +11,15 @@ this directory. (Note that `deepchem` must be installed first.) To
generate docs in html, run

```
pip install -r requirements.txt
make html
open _build/html/index.html
$ pip install -r ../requirements-docs.txt
$ make html
// clean build
$ make clean html
$ open build/html/index.html
```

You can generate docs in other formats as well if you like. To clean up past builds run
If you want to confirm logs in more detail

```
make clean
$ make clean html SPHINXOPTS=-vvv
```

docs/make.bat

0 → 100644
+35 −0
Original line number Diff line number Diff line
@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
(43.9 KiB)

File moved.

Loading