Skip to content

Commit

Permalink
Add docs template + some initial files to provide structure.
Browse files Browse the repository at this point in the history
  • Loading branch information
curufinwe committed Apr 26, 2023
1 parent bd13961 commit df72b5f
Show file tree
Hide file tree
Showing 8 changed files with 113 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ eggs/
.eggs/
lib/
lib64/
parts/
/parts/

This comment has been minimized.

Copy link
@michelwi

michelwi Apr 26, 2023

Contributor

did you mean to comment this out because we now do have a parts/ folder or was changing it to /parts/ intended?

This comment has been minimized.

Copy link
@curufinwe

curufinwe Apr 26, 2023

Author Contributor

This was intended. Otherwise the parts folder inside i6_models is ignored.

sdist/
var/
wheels/
Expand Down
20 changes: 20 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# 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 = .
BUILDDIR = _build

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

# 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)
27 changes: 27 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html

# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

project = 'i6 Models'
copyright = '2023, i6 & friends'
author = 'i6 & friends'

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

extensions = []

templates_path = ['_templates']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']



# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

html_theme = 'alabaster'
html_static_path = ['_static']
20 changes: 20 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.. i6 Models documentation master file, created by
sphinx-quickstart on Wed Apr 26 09:14:49 2023.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to i6 Models's documentation!
=====================================

.. toctree::
:maxdepth: 2
:caption: Contents:



Indices and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
35 changes: 35 additions & 0 deletions docs/make.bat
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=.
set BUILDDIR=_build

%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.https://www.sphinx-doc.org/
exit /b 1
)

if "%1" == "" goto help

%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
goto end

:help
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%

:end
popd
3 changes: 3 additions & 0 deletions i6_models/assemblies/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"""
Assemblies are composed of one or more parts/assemblies. They are used to construct more complex models.
"""
4 changes: 4 additions & 0 deletions i6_models/parts/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
"""
Parts are atomic components that do not use any other parts / assemblies from this repository.
They are using pyTorch/3rd-party tools and should have limited complexity.
"""
3 changes: 3 additions & 0 deletions i6_models/primitives/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"""
Primitives are stateless functions that perform work on torch.Tensor instances. E.g. activation functions, shape modifications, etc.
"""

0 comments on commit df72b5f

Please sign in to comment.