Skip to content

Commit

Permalink
Migrate to MkDocs (#559)
Browse files Browse the repository at this point in the history
* migrate to poetry
* set up mkdocs
* delete the old code
* upgrade mkdocs to 1.6
* use ruff instead of black
* remove tests that now they don't make sense

---------

Co-authored-by: Martin Pavlásek <[email protected]>
  • Loading branch information
honzajavorek and mpavlase committed Sep 1, 2024
1 parent a8e56e1 commit 723a31a
Show file tree
Hide file tree
Showing 81 changed files with 2,649 additions and 6,945 deletions.
3 changes: 0 additions & 3 deletions .dockerignore

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: build

on:
push:
pull_request:
schedule:
- cron: "0 4 * * *"

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Install Poetry
run: pipx install poetry

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
cache: poetry

- name: Install dependencies
run: poetry install

# - name: Test
# run: poetry run pytest

- name: Build
run: poetry run mkdocs build

- if: ${{ github.ref == 'refs/heads/main' }}
name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site
#cname: python.cz
36 changes: 0 additions & 36 deletions .github/workflows/main.yml

This file was deleted.

10 changes: 7 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ pip-log.txt
.cache
.pytest_cache/

# Elsa
_build/
/talks-archive/
# MkDocs
/site/

# custom
.events_cache.json
overrides/events.ics
/talks_archive/
31 changes: 0 additions & 31 deletions Dockerfile

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2013 Honza Javorek
Copyright (c) 2013-2023 Honza Javorek and contributors

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
32 changes: 0 additions & 32 deletions Pipfile

This file was deleted.

Loading

0 comments on commit 723a31a

Please sign in to comment.