Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
arjun-menon committed Aug 5, 2024
1 parent fd842a7 commit 1f922aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ must run Alteza with trusted code, or in an isolated container. For example, in
* Therefore, directories with no public files do not exist in the generated site.
* Files _reachable_ from marked-as-public files will also be publicly accessible.
* Here, reachability is discovered when a provided `link` function is used to link to other files.
* All files starting with a `.` are ignored.

3. All file and directory names, except for index page files, _at all depth levels_ must be unique. This is to simplify use of the `link(name)` function. With unique file and directory names, one can simply link to a file or directory with just its name, without needing to disambiguate a non-unique name with its path. Note: Directories can only be linked to if the directory contains an index page.

Expand Down
2 changes: 1 addition & 1 deletion alteza/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ def on_any_event(self, event: FileSystemEvent) -> None:
return
if "__pycache__" in event.src_path or "__pycache__" in event.dest_path:
return
if os.path.basename(os.path.normpath(event.src_path)).startswith("."):
if Fs.isHidden(os.path.basename(os.path.normpath(event.src_path))):
return
if (
isinstance(event, DirModifiedEvent)
Expand Down

0 comments on commit 1f922aa

Please sign in to comment.