Skip to content

Commit

Permalink
fix bug in doc templates
Browse files Browse the repository at this point in the history
  • Loading branch information
geo-martino committed Jan 15, 2024
1 parent ea8fb5a commit 95323b5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
4 changes: 2 additions & 2 deletions docs/_templates/module.rst_t
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{%- set is_root = basename == project -%}
{%- set is_root = basename == "musify" -%}
{%- set module_footer = ["base", "exception"] -%}
{%- set module_caps = ["api", "m3u", "xautopf", "flac", "mp3", "m4a", "wma"] -%}

{%- macro formatname(name) -%}
{%- if name.endswith(".exception") -%}
{%- set name = "exceptions"-%}
{%- else -%}
{%- set name = name.replace(project + ".", "").split(".") | last -%}
{%- set name = name.replace("musify.", "").split(".") | last -%}
{%- endif -%}

{%- if name | lower in module_caps -%}
Expand Down
4 changes: 2 additions & 2 deletions docs/_templates/package.rst_t
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{%- set is_root = pkgname == project -%}
{%- set is_root = pkgname == "musify" -%}
{%- set module_footer = ["base", "exception"] -%}
{%- set module_caps = ["api", "m3u", "xautopf", "flac", "mp3", "m4a", "wma"] -%}

{%- macro formatname(name) -%}
{%- if name.endswith(".exception") -%}
{%- set name = "exceptions"-%}
{%- else -%}
{%- set name = name.replace(project + ".", "").split(".") | last -%}
{%- set name = name.replace("musify.", "").split(".") | last -%}
{%- endif -%}

{%- if name | lower in module_caps -%}
Expand Down
5 changes: 0 additions & 5 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
.. Musify documentation master file, created by
sphinx-quickstart on Fri Jan 5 23:04:37 2024.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to Musify!
===================================

Expand Down

0 comments on commit 95323b5

Please sign in to comment.