This repository was archived by the owner on Apr 28, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33from pathlib import Path
44
5+ from reflex .constants import Dirs
6+
57from 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
1012def generate_markdown_files () -> None :
Original file line number Diff line number Diff line change @@ -284,9 +284,19 @@ def comp(_actual=actual_path):
284284
285285
286286for 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 )
288293for 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
291301doc_routes = [
292302 library ,
You can’t perform that action at this time.
0 commit comments