Skip to content
This repository was archived by the owner on Nov 6, 2025. It is now read-only.

Commit cb73592

Browse files
committed
Fixed examples
1 parent e8aa17a commit cb73592

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

hooks/archive.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,10 @@ def on_post_build(config: MkDocsConfig):
7272

7373
# Find all files recursively and add them to the archive
7474
for file in iglob(path, recursive = True):
75-
location = os.path.join(name, os.path.relpath(file, base))
76-
77-
# Add file to archive
7875
log.debug(f"+ '{file}'")
79-
f.write(file, location)
76+
f.write(file, os.path.join(
77+
example, os.path.relpath(file, base)
78+
))
8079

8180
# -----------------------------------------------------------------------------
8281
# Data

0 commit comments

Comments
 (0)