Skip to content

Commit

Permalink
πŸ“ Streamline docs (#37)
Browse files Browse the repository at this point in the history
* πŸ“ Streamline docs

* πŸ’š Fix
  • Loading branch information
falexwolf authored Jul 20, 2023
1 parent 1d65c70 commit 2efbc7f
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ def install(session: nox.Session) -> None:
:hidden:
:caption: Other topics
../setup/index
../faq/index
../storage/index
../glossary
../problems
```
Expand Down Expand Up @@ -82,19 +80,9 @@ def pull_artifacts(session):
pull_from_s3_and_unpack("lamindb_docs.zip")
Path("lamindb_docs/README.md").rename("README.md")
for path in Path("lamindb_docs").glob("*"):
if path.name == "index.md":
if path.name == "index.md" or "/storage/" in path.as_posix():
continue
path.rename(Path("docs") / path.name)
# lamindb_setup
pull_from_s3_and_unpack("lamindb_setup_docs.zip")
Path("lamindb_setup_docs/guide").rename("docs/setup")
replace_lamindb_setup = {
"import lamindb_setup as ln_setup": "import lamindb as ln",
"ln_setup": "ln.setup",
"lamindb_setup": "lamindb.setup",
}
for file in Path("docs/setup").glob("*"):
replace_content(file, replace_lamindb_setup)
# lamindb guide
replace_content("docs/guide/index.md", {OTHER_TOPICS_ORIG: "\n\n"})
# integrations
Expand Down

0 comments on commit 2efbc7f

Please sign in to comment.