Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix plugin bugs #491

Merged
merged 2 commits into from
Feb 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build docs

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install deps
run: |
python -m pip install --upgrade pip setuptools
pip install mkdocs
pip install -r mkdocs_plugin/requirements.txt

- name: Install current plugin
run: |
python mkdocs_plugin/setup.py install --force
pip freeze

- name: Build docs
run: |
python -m mkdocs build --clean --site-dir html --config-file mkdocs.yml
2 changes: 1 addition & 1 deletion mkdocs_plugin/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setup(
name="mkdocs-test-definitions-plugin",
version="1.4",
version="1.5",
description="An MkDocs plugin that converts LAVA test definitions to documentation",
long_description="",
keywords="mkdocs python markdown wiki",
Expand Down
2 changes: 1 addition & 1 deletion mkdocs_plugin/testdefinitionsmkdocs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,4 @@ def on_files(self, files, config):
use_directory_urls=False,
)
files.append(newfile)
return sorted(files, key=lambda x: x.src_pat, reverse=True)
return sorted(files, key=lambda x: x.src_path, reverse=False)
Loading