feat: initial commit

This commit is contained in:
2021-11-21 13:58:52 +00:00
commit fb7fec7ea6
53 changed files with 4920 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

@@ -0,0 +1,7 @@
# CLI Reference
::: mkdocs-click
:module: tembo.cli.cli
:command: main
:prog_name: tembo
:style: table

4
docs/css/extra.css Normal file
View File

@@ -0,0 +1,4 @@
:root {
--md-primary-bg-color: #ee0f0f;
--md-primary-bg-color--light: #ee0f0f;
}

View File

@@ -0,0 +1,6 @@
/* Indentation. */
div.doc-contents:not(.first) {
padding-left: 25px;
border-left: 4px solid rgba(230, 230, 230);
margin-bottom: 80px;
}

28
docs/gen_reference.py Normal file
View File

@@ -0,0 +1,28 @@
"""Generate the code reference pages and navigation."""
from pathlib import Path
import mkdocs_gen_files
PACKAGE_NAME = "tembo"
nav = mkdocs_gen_files.Nav()
for path in sorted(Path(PACKAGE_NAME).glob("**/*.py")):
module_path = path.relative_to(PACKAGE_NAME).with_suffix("")
doc_path = path.relative_to(PACKAGE_NAME).with_suffix(".md")
full_doc_path = Path("code_reference", doc_path)
parts = list(module_path.parts)
parts[-1] = f"{parts[-1]}.py"
nav[parts] = doc_path
with mkdocs_gen_files.open(full_doc_path, "w") as fd:
code_ident = ".".join(module_path.parts)
print("::: " + PACKAGE_NAME + "." + code_ident, file=fd)
mkdocs_gen_files.set_edit_path(full_doc_path, path)
with mkdocs_gen_files.open("code_reference/SUMMARY.md", "w") as nav_file:
nav_file.writelines(nav.build_literate_nav())

1
docs/home/changelog.md Normal file
View File

@@ -0,0 +1 @@
--8<-- "CHANGELOG.md"

3
docs/home/license.md Normal file
View File

@@ -0,0 +1,3 @@
```
--8<-- "LICENSE.md"
```

8
docs/index.md Normal file
View File

@@ -0,0 +1,8 @@
# Tembo
```python
from tembo import Success
```
v0.0.8