Skip to content
This repository was archived by the owner on Apr 28, 2026. It is now read-only.

Commit 49d194b

Browse files
committed
updates
1 parent 3a17941 commit 49d194b

2 files changed

Lines changed: 15 additions & 3 deletions

File tree

pcweb/markdown_api.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
from pathlib import Path
44

5+
from reflex.constants import Dirs
6+
57
from pcweb.pages.docs import doc_markdown_sources
68

7-
PUBLIC_DIR = Path(".web/public")
9+
PUBLIC_DIR = Path.cwd() / Dirs.WEB / Dirs.PUBLIC
810

911

1012
def generate_markdown_files() -> None:

pcweb/pages/docs/__init__.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,9 +284,19 @@ def comp(_actual=actual_path):
284284

285285

286286
for fd in flexdown_docs:
287-
doc_markdown_sources[doc_route_from_path(fd)] = doc_path_mapping.get(fd, fd)
287+
if fd.endswith("-style.md") or fd.endswith("-ll.md"):
288+
continue
289+
route = doc_route_from_path(fd)
290+
if not _check_whitelisted_path(route):
291+
continue
292+
doc_markdown_sources[route] = doc_path_mapping.get(fd, fd)
288293
for virtual_doc, actual_path in docgen_docs.items():
289-
doc_markdown_sources[doc_route_from_path(virtual_doc)] = actual_path
294+
if virtual_doc.endswith("-style.md") or virtual_doc.endswith("-ll.md"):
295+
continue
296+
route = doc_route_from_path(virtual_doc)
297+
if not _check_whitelisted_path(route):
298+
continue
299+
doc_markdown_sources[route] = actual_path
290300

291301
doc_routes = [
292302
library,

0 commit comments

Comments
 (0)