Skip to content

Commit 527b3fb

Browse files
authored
Merge pull request #423 from pyvec/honzajavorek/structure
Change repo structure
2 parents 5af299f + ba13608 commit 527b3fb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+50
-41
lines changed

.github/workflows/check_links.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Install uv
1515
uses: astral-sh/setup-uv@v6
1616
- name: Build documentation
17-
run: uv run sphinx-build -nWaE . _build
17+
run: uv run sphinx-build -nWaE docs build
1818
- name: Link Checker
1919
id: lychee
2020
uses: lycheeverse/lychee-action@v2

.github/workflows/generate_grants.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ jobs:
1313
- name: Install uv
1414
uses: astral-sh/setup-uv@v6
1515
- name: Generate the list of grants
16-
run: uv run python _scripts/generate_grants.py > ./operations/grants.rst
16+
run: uv run python scripts/generate_grants.py > ./docs/operations/grants.rst
1717
env:
1818
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1919
- name: Create PR
2020
uses: peter-evans/create-pull-request@v7
2121
with:
2222
token: ${{ secrets.GITHUB_TOKEN }}
23-
add-paths: ./operations/grants.rst
23+
add-paths: ./docs/operations/grants.rst
2424
commit-message: "update the list of grants (generated)"
2525
branch: automation/grants
2626
title: "Automated update of the list of grants"

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ jobs:
1212
- name: Test
1313
run: uv run pytest
1414
- name: Build documentation
15-
run: uv run sphinx-build -nWaE . _build
15+
run: uv run sphinx-build -nWaE docs build

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ python:
88
- method: pip
99
path: .
1010
sphinx:
11-
configuration: conf.py
11+
configuration: docs/conf.py
1212
fail_on_warning: true

CONTRIBUTING.rst

Lines changed: 2 additions & 2 deletions

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2024 Pyvec, z.s. <[email protected]>
1+
Copyright (c) 2025 Pyvec, z.s. <[email protected]>
22

33
Texty a obrázky materiálů jsou uvolněny pod licencí CC BY-SA 4.0
44
https://creativecommons.org/licenses/by-sa/4.0

LICENSE.MIT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2024 Pyvec, z.s. <[email protected]>
3+
Copyright (c) 2025 Pyvec, z.s. <[email protected]>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of
66
this software and associated documentation files (the "Software"), to deal in
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

conf.py renamed to docs/conf.py

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
# Configuration file for the Sphinx documentation builder
22

33
import os
4+
import tomllib
5+
6+
7+
# -- Metadata reading --------------------------------------------------------
8+
9+
with open("../pyproject.toml", "rb") as f:
10+
pyproject = tomllib.load(f)
11+
pyproject_version = pyproject["project"]["version"]
12+
pyproject_name = pyproject["project"]["name"]
413

514

615
# -- Project information -----------------------------------------------------
@@ -10,7 +19,7 @@
1019
author = "Pyvec, z.s."
1120

1221
# The short X.Y version
13-
version = ""
22+
version = pyproject_version
1423
# The full version, including alpha/beta/rc tags
1524
release = ""
1625

@@ -53,18 +62,7 @@
5362
# List of patterns, relative to source directory, that match files and
5463
# directories to ignore when looking for source files.
5564
# This pattern also affects html_static_path and html_extra_path .
56-
exclude_patterns = [
57-
"_build",
58-
"Thumbs.db",
59-
".DS_Store",
60-
"venv",
61-
".venv",
62-
".github",
63-
".pytest_cache",
64-
".ruff_cache",
65-
"src",
66-
"tests",
67-
]
65+
exclude_patterns = ["Thumbs.db", ".DS_Store"]
6866

6967
# The name of the Pygments (syntax highlighting) style to use.
7068
pygments_style = "monokai"
@@ -89,7 +87,7 @@
8987
# -- Options for HTMLHelp output ---------------------------------------------
9088

9189
# Output file base name for HTML help builder.
92-
htmlhelp_basename = "pyvec-doc"
90+
htmlhelp_basename = pyproject_name
9391

9492

9593
# -- Options for LaTeX output ------------------------------------------------
@@ -100,15 +98,15 @@
10098
# (source start file, target name, title,
10199
# author, documentclass [howto, manual, or own class]).
102100
latex_documents = [
103-
(master_doc, "pyvec.tex", project, author, "manual"),
101+
(master_doc, pyproject_name + ".tex", project, author, "manual"),
104102
]
105103

106104

107105
# -- Options for manual page output ------------------------------------------
108106

109107
# One entry per manual page. List of tuples
110108
# (source start file, name, description, authors, manual section).
111-
man_pages = [(master_doc, "pyvec", project, [author], 1)]
109+
man_pages = [(master_doc, pyproject_name, project, [author], 1)]
112110

113111

114112
# -- Options for Texinfo output ----------------------------------------------
@@ -117,7 +115,7 @@
117115
# (source start file, target name, title, author,
118116
# dir menu entry, description, category)
119117
texinfo_documents = [
120-
(master_doc, "pyvec", project, author, "pyvec", project, "Miscellaneous"),
118+
(master_doc, pyproject_name, project, author, pyproject_name, project, "Miscellaneous"),
121119
]
122120

123121

docs/contributing.rst

Lines changed: 1 addition & 0 deletions

index.rst renamed to docs/index.rst

Lines changed: 2 additions & 2 deletions

operations/grants.rst renamed to docs/operations/grants.rst

Lines changed: 8 additions & 8 deletions

operations/grants.rst.jinja renamed to docs/operations/grants.rst.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Elektronická hlasování o grantech
33

44
Od roku 2020 o grantech :term:`výbor <Výbor>` hlasuje prostřednictvím repozitáře `pyvec/money <https://github.com/pyvec/money>`_. Zde je strojový přepis proběhlých hlasování. Kanonickým zdrojem pravdy je hlasování přímo na GitHub Issues. Kdyby něco nesedělo, ověřte `historii tohoto souboru <https://github.com/pyvec/docs.pyvec.org/commits/master/operations/grants.rst>`_ a funkčnost :ref:`přepisů <generate_grants>`.
55

6-
.. Soubor operations/grants.rst je generován skriptem _scripts/generate_grants.py ze šablony operations/grants.rst.jinja. Neupravovat ručně!
6+
.. Soubor operations/grants.rst je generován skriptem scripts/generate_grants.py ze šablony operations/grants.rst.jinja. Neupravovat ručně!
77

88
{% for grant in grants %}
99
{{ grant.voted_at.day }}. {{ grant.voted_at.month }}. {{ grant.voted_at.year }} - elektronické hlasování výboru
File renamed without changes.

uv.lock

Lines changed: 14 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)