mirror of
https://github.com/tembo-pages/tembo-core.git
synced 2025-12-22 05:35:43 +00:00
feat: initial commit
This commit is contained in:
BIN
docs/assets/tembo_doc_logo.png
Normal file
BIN
docs/assets/tembo_doc_logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.0 KiB |
7
docs/cli_reference/main.md
Normal file
7
docs/cli_reference/main.md
Normal 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
4
docs/css/extra.css
Normal file
@@ -0,0 +1,4 @@
|
||||
:root {
|
||||
--md-primary-bg-color: #ee0f0f;
|
||||
--md-primary-bg-color--light: #ee0f0f;
|
||||
}
|
||||
6
docs/css/mkdocstrings.css
Normal file
6
docs/css/mkdocstrings.css
Normal 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
28
docs/gen_reference.py
Normal 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
1
docs/home/changelog.md
Normal file
@@ -0,0 +1 @@
|
||||
--8<-- "CHANGELOG.md"
|
||||
3
docs/home/license.md
Normal file
3
docs/home/license.md
Normal file
@@ -0,0 +1,3 @@
|
||||
```
|
||||
--8<-- "LICENSE.md"
|
||||
```
|
||||
8
docs/index.md
Normal file
8
docs/index.md
Normal file
@@ -0,0 +1,8 @@
|
||||
# Tembo
|
||||
|
||||
```python
|
||||
from tembo import Success
|
||||
```
|
||||
|
||||
v0.0.8
|
||||
|
||||
Reference in New Issue
Block a user