Skip to content

Commit f56558a

Browse files
authored
Mike search (#11)
* Fix mike search * Fix workflow * Fix append search.js mkdocs
1 parent e95d1bc commit f56558a

File tree

6 files changed

+14
-8
lines changed

6 files changed

+14
-8
lines changed

.github/workflows/main_docs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- uses: actions/checkout@v3
21+
with:
22+
ref: ${{ github.event.inputs.ref }}
2123
- uses: actions/setup-python@v4
2224
with:
2325
python-version: '3.12'

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<img src="./.github/images/fishjam-card.png" width="100%">
1+
<img src="./images/fishjam-card.png" width="100%">
22

33
# Fishjam Python Server SDK
44

poetry_scripts.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,15 @@ def generate_docs():
6565
)
6666
here = Path(__file__).parent
6767
input = here / "doc"
68+
input_images = here / "images"
6869
out = here / "docs" / "api"
70+
out_images = here / "docs" / "api" / "images"
6971

7072
if out.exists():
7173
shutil.rmtree(out)
7274

7375
shutil.copytree(input, out)
76+
shutil.copytree(input_images, out_images)
7477

7578
# ...and rename the .html files to .md so that mkdocs picks them up!
7679
for f in out.glob("**/*.html"):

templates/doc/module.html.jinja2

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,14 @@
2626
{% endif %}
2727
{% endblock %}
2828

29-
{% block search_box %}
30-
{% if search and all_modules|length > 1 %}
29+
{# TODO: search box doesn't work with mkdocs theme #}
30+
{# {% block search_box %} #}
31+
{# {% if search and all_modules|length > 1 %} #}
3132
{# we set a pattern here so that we can use the :valid CSS selector #}
32-
<input type="search" placeholder="Search..." role="searchbox" aria-label="search"
33-
pattern=".+" required>
34-
{% endif %}
35-
{% endblock %}
33+
{# <input type="search" placeholder="Search..." role="searchbox" aria-label="search" #}
34+
{# pattern=".+" required> #}
35+
{# {% endif %} #}
36+
{# {% endblock %} #}
3637

3738
{% block nav_index %}
3839
{% set index = module.docstring | to_markdown | to_html | attr("toc_html") %}

0 commit comments

Comments
 (0)