Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions shepherd/blueprints/staticroutes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,18 @@
docs_path = path.join(__dirname, "docs")
editor_path = path.join(__dirname, "editor")


@blueprint.route("docs/")
def send_doc_index():
return send_file(path.join(docs_path, "index.html"))


@blueprint.route("docs/<path:filename>")
def send_doc_file(filename):
return send_from_directory(docs_path, filename)
@blueprint.route("docs/<path:name>")
def send_doc_file(name):
p = path.join(docs_path, name)

if path.isfile(p):
return send_file(p)
else:
return send_file(path.join(p, "index.html"))

@blueprint.route("images/<path:filename>")
def send_image_for_docs(filename):
Expand Down
Binary file not shown.
Binary file not shown.
69 changes: 52 additions & 17 deletions shepherd/blueprints/staticroutes/docs/404.html

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions shepherd/blueprints/staticroutes/docs/_astro/ec.8zarh.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions shepherd/blueprints/staticroutes/docs/_astro/ec.j8ofn.css

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

This file was deleted.

Loading
Loading