1
0
Fork 0

sphinx, crufty

deepcrayon
Jeff Moe 2023-12-04 22:00:18 -07:00
parent 8e35afc276
commit 01503ca90d
7 changed files with 1329 additions and 143 deletions

View File

@ -12,7 +12,7 @@ UPDATE_LOCALE = sphinx-intl update -p $(BUILDDIR)/locale/gettext -d $(SOURCEDI
PO_FILES = $(wildcard docs/_source/locale/*/LC_MESSAGES/*.po)
MSGATTRIB = msgattrib
#LANGUAGES = am ar bg bn ca cak cs cy da de el en eo es et eu fa fi fil fr he hi hr hu id it ja ko lkt lt lv mk mr ms ne nl no pl pt ro ru si sk sl sq sr sv ta te th tr uk ur vi zh
LANGUAGES = en es
LANGUAGES = en
.PHONY: check help html livehtml clean_sphinx clean gettext_build update_locale build_html all copy clean_po latex latexpdf

View File

@ -2,77 +2,78 @@
import sys, os
import sphinx.util.logging
logger = sphinx.util.logging.getLogger(__name__)
project = 'tinygrab'
copyright = '2023, Jeff Moe'
author = 'Jeff Moe'
project = "tinygrab"
copyright = "2023, Jeff Moe"
author = "Jeff Moe"
version = "0"
release = '0.0.1'
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode', 'notfound.extension', 'sphinx.ext.intersphinx']
templates_path = ['_templates']
release = "0.0.1"
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.viewcode",
"notfound.extension",
"sphinx.ext.intersphinx",
]
templates_path = ["_templates"]
exclude_patterns = []
source_suffix = '.rst'
master_doc = 'index'
source_suffix = ".rst"
master_doc = "index"
# Code syntax highlighting
pygments_style = 'sphinx'
pygments_style = "sphinx"
# White background
#pygments_style = 'staroffice'
# pygments_style = 'staroffice'
# Medium background
#pygments_style = 'gruvbox-light'
# pygments_style = 'gruvbox-light'
# Dark background
#pygments_style = 'dracula'
# pygments_style = 'dracula'
python_display_short_literal_types = True
todo_include_todos = False
html_show_copyright = False
html_static_path = ['_static']
#html_favicon = '_static/favicon.ico'
#html_logo = '_static/logo.png'
html_static_path = ["_static"]
# html_favicon = '_static/favicon.ico'
# html_logo = '_static/logo.png'
html_last_updated_fmt: None
html_show_sphinx = False
html_show_sourcelink = False
html_link_suffix = '.html'
html_link_suffix = ".html"
html_theme = "sphinx_rtd_theme"
html_theme_options = {
'style_nav_header_background': '#4fb31f',
'display_version': False,
'prev_next_buttons_location': 'bottom',
'collapse_navigation': True,
'sticky_navigation': True,
'navigation_depth': 4,
'includehidden': True,
'titles_only': False,
"style_nav_header_background": "#4fb31f",
"display_version": False,
"prev_next_buttons_location": "bottom",
"collapse_navigation": True,
"sticky_navigation": True,
"navigation_depth": 4,
"includehidden": True,
"titles_only": False,
}
html_css_files = [
'custom.css',
"custom.css",
]
html_context = {
"display_lower_left": True,
}
locale_dirs = ['locale/']
locale_dirs = ["locale/"]
gettext_compact = False
language = 'en'
#languages = ('am', 'ar', 'bn', 'de', 'el', 'en', 'eo', 'es', 'eu', 'fil', 'fr', 'he', 'hi', 'id', 'it', 'ja', 'ko', 'mr', 'ms', 'nl', 'pl', 'pt', 'ru', 'see', 'ta', 'te', 'th', 'tr', 'ur', 'vi', 'zh')
languages = ('en', 'es')
html_search_language = 'en'
language = "en"
# languages = ('am', 'ar', 'bn', 'de', 'el', 'en', 'eo', 'es', 'eu', 'fil', 'fr', 'he', 'hi', 'id', 'it', 'ja', 'ko', 'mr', 'ms', 'nl', 'pl', 'pt', 'ru', 'see', 'ta', 'te', 'th', 'tr', 'ur', 'vi', 'zh')
languages = "en"
html_search_language = "en"
sys.path.insert(0, os.path.abspath('datasets'))
sys.path.insert(0, os.path.abspath('models'))
sys.path.insert(0, os.path.abspath('ide'))
sys.path.insert(0, os.path.abspath('extension'))
latex_engine = 'xelatex'
latex_engine = "xelatex"
latex_elements = {
'extraclassoptions': 'openany,oneside',
'sphinxsetup': 'hmargin={1in,1in}, vmargin={1in,1in}',
'inputenc': '',
'utf8extra': '',
'preamble': r'''
"extraclassoptions": "openany,oneside",
"sphinxsetup": "hmargin={1in,1in}, vmargin={1in,1in}",
"inputenc": "",
"utf8extra": "",
"preamble": r"""
\usepackage{xcolor}
\usepackage{polyglossia}
''',
""",
}
notfound_urls_prefix = '/en/'
notfound_urls_prefix = "/en/"

View File

@ -39,6 +39,7 @@ The typist, blindly following AI instructions.
.. note:: You want the upstream tinygrad repo, not this one.
.. toctree::
tinygrad
:maxdepth: 2
:caption: Contents:

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tinygrab 0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-12-04 20:52-0700\n"
"POT-Creation-Date: 2023-12-04 21:44-0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: en\n"
@ -37,9 +37,9 @@ msgstr ""
#: ../../../_source/index.rst:9
msgid ""
"``tinygrab`` exists so I can, perchance learn a little about "
"``tinygrad``, my nascent AI system, and the glorious Sphinx documentation"
" system. With docstrings."
"``tinygrab`` exists so I can, perchance learn a little about ``tinygrad``, "
"my nascent AI system, and the glorious Sphinx documentation system. With "
"docstrings."
msgstr ""
#: ../../../_source/index.rst:15
@ -48,8 +48,8 @@ msgstr ""
#: ../../../_source/index.rst:16
msgid ""
"Most certainly want the upstream repo, not this repo. See ``README-"
"upstream.md`` for the upstream readme. Upstream repo:"
"Most certainly want the upstream repo, not this repo. See ``README-upstream."
"md`` for the upstream readme. Upstream repo:"
msgstr ""
#: ../../../_source/index.rst:20
@ -89,4 +89,3 @@ msgstr ""
#: ../../../_source/index.rst:39
msgid "You want the upstream tinygrad repo, not this one."
msgstr ""

File diff suppressed because it is too large Load Diff

View File

@ -1,92 +0,0 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2023, Jeff Moe
# This file is distributed under the same license as the tinygrab package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2023.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: tinygrab 0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-12-04 20:52-0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: es\n"
"Language-Team: es <LL@li.org>\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.13.1\n"
#: ../../../_source/index.rst:41
msgid "Contents:"
msgstr ""
#: ../../../_source/index.rst:3
msgid "tinygrab"
msgstr ""
#: ../../../_source/index.rst:5
msgid "`<https://spacecruft.org/deepcrayon/tinygrab>`_"
msgstr ""
#: ../../../_source/index.rst:7
msgid "``tinygrab`` is a lesser forklet of ``tinygrad``."
msgstr ""
#: ../../../_source/index.rst:9
msgid ""
"``tinygrab`` exists so I can, perchance learn a little about "
"``tinygrad``, my nascent AI system, and the glorious Sphinx documentation"
" system. With docstrings."
msgstr ""
#: ../../../_source/index.rst:15
msgid "Upstream"
msgstr ""
#: ../../../_source/index.rst:16
msgid ""
"Most certainly want the upstream repo, not this repo. See ``README-"
"upstream.md`` for the upstream readme. Upstream repo:"
msgstr ""
#: ../../../_source/index.rst:20
msgid "https://github.com/tinygrad/tinygrad"
msgstr ""
#: ../../../_source/index.rst:24
msgid "AI Assistant"
msgstr ""
#: ../../../_source/index.rst:25
msgid ""
"Using the Parrot application as a code assistant, with the Phind model, "
"doctrings and a Sphinx setup was generated."
msgstr ""
#: ../../../_source/index.rst:28
msgid "https://parrot.codes"
msgstr ""
#: ../../../_source/index.rst:32
msgid "Human"
msgstr ""
#: ../../../_source/index.rst:33
msgid "The typist, blindly following AI instructions."
msgstr ""
#: ../../../_source/index.rst:35
msgid "Jeff Moe <moe@parrot.codes>"
msgstr ""
#: ../../../_source/index.rst:36
msgid "Loveland, Colorado"
msgstr ""
#: ../../../_source/index.rst:39
msgid "You want the upstream tinygrad repo, not this one."
msgstr ""

View File

@ -0,0 +1,202 @@
========
tinygrad
========
``tinygrad`` with crufty comments added by AI.
.. note:: You want the upstream tinygrad repo, not this one.
.. toctree::
:maxdepth: 2
:caption: Contents:
tinygrad module
---------------
.. automodule:: tinygrad
:members:
tinygrad.Device
---------------
.. automodule:: tinygrad.Device
:members:
tinygrad.Tensor
---------------
.. automodule:: tinygrad.Tensor
:members:
tinygrad.TinyJit
---------------
.. automodule:: tinygrad.TinyJit
:members:
tinygrad.Variable
---------------
.. automodule:: tinygrad.Variable
:members:
tinygrad.codegen
---------------
.. automodule:: tinygrad.codegen
:members:
tinygrad.device
---------------
.. automodule:: tinygrad.device
:members:
tinygrad.dtypes
---------------
.. automodule:: tinygrad.dtypes
:members:
tinygrad.features
---------------
.. automodule:: tinygrad.features
:members:
tinygrad.graph
---------------
.. automodule:: tinygrad.graph
:members:
tinygrad.helpers
---------------
.. automodule:: tinygrad.helpers
:members:
tinygrad.jit
---------------
.. automodule:: tinygrad.jit
:members:
tinygrad.lazy
---------------
.. automodule:: tinygrad.lazy
:members:
tinygrad.mlops
---------------
.. automodule:: tinygrad.mlops
:members:
tinygrad.ops
---------------
.. automodule:: tinygrad.ops
:members:
tinygrad.realize
---------------
.. automodule:: tinygrad.realize
:members:
tinygrad.shape
---------------
.. automodule:: tinygrad.shape
:members:
tinygrad.tensor
---------------
.. automodule:: tinygrad.tensor
:members:
tinygrad.__builtins__
---------------
.. automodule:: tinygrad.__builtins__
:members:
tinygrad.__cached__
---------------
.. automodule:: tinygrad.__cached__
:members:
tinygrad.__doc__
---------------
.. automodule:: tinygrad.__doc__
:members:
tinygrad.__file__
---------------
.. automodule:: tinygrad.__file__
:members:
tinygrad.__loader__
---------------
.. automodule:: tinygrad.__loader__
:members:
tinygrad.__name__
---------------
.. automodule:: tinygrad.__name__
:members:
tinygrad.__package__
---------------
.. automodule:: tinygrad.__package__
:members:
tinygrad.__path__
---------------
.. automodule:: tinygrad.__path__
:members:
tinygrad.__spec__
---------------
.. automodule:: tinygrad.__spec__
:members: