remove source-lit docs 2 (#15527)
This commit is contained in:
parent
39c6ec9ce3
commit
0c63534b7e
|
@ -31,7 +31,7 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
pkg-name: ["app", "pytorch"] # TODO: , "lit"
|
||||
pkg-name: ["app", "pytorch"]
|
||||
env:
|
||||
FREEZE_REQUIREMENTS: "1"
|
||||
steps:
|
||||
|
|
|
@ -9,9 +9,6 @@ lightning_logs/
|
|||
# Documentations
|
||||
docs/source-app/generated
|
||||
docs/source-app/*/generated
|
||||
docs/source-lit/generated
|
||||
docs/source-lit/*/generated
|
||||
docs/source-lit/api
|
||||
docs/source-pytorch/api
|
||||
docs/source-pytorch/*.md
|
||||
docs/source-pytorch/generated
|
||||
|
|
3
Makefile
3
Makefile
|
@ -22,9 +22,6 @@ clean:
|
|||
rm -rf ./docs/source-pytorch/api
|
||||
rm -rf ./docs/source-app/generated
|
||||
rm -rf ./docs/source-app/*/generated
|
||||
rm -rf ./docs/source-lit/api
|
||||
rm -rf ./docs/source-lit/generated
|
||||
rm -rf ./docs/source-lit/*/generated
|
||||
rm -rf build
|
||||
rm -rf dist
|
||||
rm -rf *.egg-info
|
||||
|
|
|
@ -1,27 +0,0 @@
|
|||
import glob
|
||||
import os
|
||||
|
||||
|
||||
def symlink_folder(source_dir, target_dir: str = "source-lit") -> None:
|
||||
assert os.path.isdir(source_dir)
|
||||
assert os.path.isdir(target_dir)
|
||||
ls = glob.glob(os.path.join(source_dir, "**"), recursive=True)
|
||||
for path_ in ls:
|
||||
path_target = path_.replace(source_dir, target_dir)
|
||||
if os.path.isdir(path_) or os.path.exists(path_target):
|
||||
continue
|
||||
if os.path.islink(path_target):
|
||||
print(path_target)
|
||||
continue
|
||||
path_dir = os.path.dirname(path_target)
|
||||
os.makedirs(path_dir, exist_ok=True)
|
||||
depth = path_.count(os.path.sep)
|
||||
path_root = os.path.sep.join([".."] * depth)
|
||||
path_source = os.path.join(path_root, path_)
|
||||
# print(path_source, path_target, os.path.exists(path_target))
|
||||
os.symlink(path_source, path_target)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
for name in ("app", "pytorch"):
|
||||
symlink_folder(f"source-{name}")
|
|
@ -1 +0,0 @@
|
|||
# this is just compatibility placeholder for the future fused docs
|
|
@ -1 +0,0 @@
|
|||
-r ../pytorch/examples.txt
|
|
@ -1,8 +0,0 @@
|
|||
-r ../docs.txt
|
||||
|
||||
ipython[notebook]
|
||||
ipython_genutils
|
||||
|
||||
lai-sphinx-theme
|
||||
|
||||
-r ../../_notebooks/.actions/requirements.txt
|
Loading…
Reference in New Issue