fr-docs 3.1.0__tar.gz → 3.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. {fr_docs-3.1.0 → fr_docs-3.2.0}/PKG-INFO +1 -1
  2. {fr_docs-3.1.0 → fr_docs-3.2.0}/fr_docs/html_pipeline.py +2 -2
  3. {fr_docs-3.1.0 → fr_docs-3.2.0}/fr_docs/utils.py +12 -1
  4. {fr_docs-3.1.0 → fr_docs-3.2.0}/fr_docs.egg-info/PKG-INFO +1 -1
  5. {fr_docs-3.1.0 → fr_docs-3.2.0}/pyproject.toml +1 -1
  6. {fr_docs-3.1.0 → fr_docs-3.2.0}/LICENSE.md +0 -0
  7. {fr_docs-3.1.0 → fr_docs-3.2.0}/README.md +0 -0
  8. {fr_docs-3.1.0 → fr_docs-3.2.0}/fr_docs/__init__.py +0 -0
  9. {fr_docs-3.1.0 → fr_docs-3.2.0}/fr_docs/__main__.py +0 -0
  10. {fr_docs-3.1.0 → fr_docs-3.2.0}/fr_docs/build.py +0 -0
  11. {fr_docs-3.1.0 → fr_docs-3.2.0}/fr_docs/config.py +0 -0
  12. {fr_docs-3.1.0 → fr_docs-3.2.0}/fr_docs/config_accessors.py +0 -0
  13. {fr_docs-3.1.0 → fr_docs-3.2.0}/fr_docs/frontmatter.py +0 -0
  14. {fr_docs-3.1.0 → fr_docs-3.2.0}/fr_docs/git.py +0 -0
  15. {fr_docs-3.1.0 → fr_docs-3.2.0}/fr_docs/init.py +0 -0
  16. {fr_docs-3.1.0 → fr_docs-3.2.0}/fr_docs/markdown.py +0 -0
  17. {fr_docs-3.1.0 → fr_docs-3.2.0}/fr_docs/search.py +0 -0
  18. {fr_docs-3.1.0 → fr_docs-3.2.0}/fr_docs/slug.py +0 -0
  19. {fr_docs-3.1.0 → fr_docs-3.2.0}/fr_docs/syntax.py +0 -0
  20. {fr_docs-3.1.0 → fr_docs-3.2.0}/fr_docs/template.py +0 -0
  21. {fr_docs-3.1.0 → fr_docs-3.2.0}/fr_docs.egg-info/SOURCES.txt +0 -0
  22. {fr_docs-3.1.0 → fr_docs-3.2.0}/fr_docs.egg-info/dependency_links.txt +0 -0
  23. {fr_docs-3.1.0 → fr_docs-3.2.0}/fr_docs.egg-info/entry_points.txt +0 -0
  24. {fr_docs-3.1.0 → fr_docs-3.2.0}/fr_docs.egg-info/requires.txt +0 -0
  25. {fr_docs-3.1.0 → fr_docs-3.2.0}/fr_docs.egg-info/top_level.txt +0 -0
  26. {fr_docs-3.1.0 → fr_docs-3.2.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fr-docs
3
- Version: 3.1.0
3
+ Version: 3.2.0
4
4
  Summary: Fast static documentation generator with search, versioning, and zero-config setup
5
5
  Author: Omena0
6
6
  License: # PolyForm Noncommercial License 1.0.0
@@ -43,7 +43,7 @@ from .syntax import (
43
43
  process_blockquotes,
44
44
  )
45
45
  from .template import TEMPLATE, build_toc_sidebar
46
- from .utils import normalized_site_prefix, output_href
46
+ from .utils import normalized_site_prefix, output_href, output_asset_href
47
47
 
48
48
 
49
49
  def _determine_tagged_sections(config):
@@ -128,7 +128,7 @@ def _get_search_preloads_html():
128
128
  def _render_template_placeholders(config):
129
129
  """Extract common template placeholders from config."""
130
130
  return {
131
- "site_prefix": output_href("", config),
131
+ "site_prefix": output_asset_href("", config),
132
132
  "page_title": "",
133
133
  "project_name": project_name(config),
134
134
  "og_title": "",
@@ -21,4 +21,15 @@ def output_href(path, config):
21
21
 
22
22
 
23
23
  def output_site_prefix(config: dict) -> str:
24
- return normalized_site_prefix(config) if config.get("production", False) else ""
24
+ return normalized_site_prefix(config) if config.get("production", False) else "/"
25
+
26
+
27
+ def output_asset_href(path, config):
28
+ """Return a root-relative href for a static asset.
29
+
30
+ Static assets (CSS, JS, favicon, fonts) must resolve from any page
31
+ depth, so they always use a root-relative path (e.g. ``/style.css``).
32
+ """
33
+ clean = str(path or "").lstrip("/")
34
+ prefix = normalized_site_prefix(config)
35
+ return prefix + clean if prefix else "/" + clean
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fr-docs
3
- Version: 3.1.0
3
+ Version: 3.2.0
4
4
  Summary: Fast static documentation generator with search, versioning, and zero-config setup
5
5
  Author: Omena0
6
6
  License: # PolyForm Noncommercial License 1.0.0
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
8
8
  name = "fr-docs"
9
- version = "3.1.0"
9
+ version = "3.2.0"
10
10
  description = "Fast static documentation generator with search, versioning, and zero-config setup"
11
11
  readme = "README.md"
12
12
  requires-python = ">=3.14"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes