Skip to content

Commit 0f4db81

Browse files
committedOct 25, 2022
Data and Theme updates
1 parent f2ee33b commit 0f4db81

12 files changed

+292764
-796
lines changed
 

‎data/20221024_awesome.json ‎data/20221025_awesome.json

+1,602-776
Large diffs are not rendered by default.

‎data/20221025_pypi_gh_data.json

+291,108
Large diffs are not rendered by default.

‎docs/_awesome_templates/data_import.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ Instead make it configurable by variables, like sphinx_type.
99
Data
1010
----
1111

12-
.. needimport:: {{need_ipmort_file}}
12+
.. needimport:: {{need_import_file}}
1313
:filter: sphinx_type == "{{sphinx_type}}"

‎docs/_static/custom.css

+4-1
Original file line numberDiff line numberDiff line change
@@ -163,4 +163,7 @@ div.dt-button-collection button.dt-button.active:not(.disabled) {
163163
table.NEEDS_DATATABLES, table.NEEDS_TABLE{
164164
max-width: inherit;
165165
width: inherit;
166-
}
166+
}
167+
div.md-grid {
168+
max-width: 100rem !important;
169+
}

‎docs/additions.rst

+11-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ Specific Need objects
1919
:featured: True
2020
:tags: needs
2121

22+
.. needextend:: DOXYSPHINX
23+
:featured: True
24+
2225
.. needextend:: SPHINXCONTRIB-NEEDS
2326
:deprecated: True
2427
:tags: needs
@@ -32,9 +35,16 @@ Specific Need objects
3235
:tags: needs
3336

3437
.. needextend:: SPHINX-SIMPLEPDF
35-
:featured: True
3638
:sphinx_type: extension
3739
:tags: pdf
3840

3941
.. needextend:: SPHINX-IMMATERIAL
4042
:featured: True
43+
44+
45+
.. needextend:: SPHINX_DESIGN
46+
:+tags: layout
47+
48+
49+
50+

‎docs/conf.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
1717
from projects import PROJECT_TAGS
1818

19-
project = 'awesome-sphinx'
19+
project = 'Awesome-Sphinx'
2020
copyright = '2022, team useblocks'
2121
author = 'team useblockjs'
2222

@@ -43,7 +43,7 @@
4343
html_js_files = ['custom.js']
4444
html_context = {
4545
'project_tags': PROJECT_TAGS,
46-
'need_ipmort_file': os.getenv('AWESOMESPHINX_NEEDS_FILE', '/../data/20221024_awesome.json')
46+
'need_import_file': os.getenv('AWESOMESPHINX_NEEDS_FILE', '/../data/20221025_awesome.json')
4747
}
4848

4949
html_theme_options = {
@@ -90,6 +90,7 @@
9090
},
9191
],
9292
"toc_title_is_page_title": True,
93+
"toc_title": "Awesome Sphinx",
9394
}
9495

9596

‎docs/index.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ Use the export buttons to get the current view as a PDF or Excel file.
5454
The export takes filter and sorting into account.
5555

5656
.. needtable::
57-
:columns: id, title as "Name", content as "Description", sphinx_type as "Type", license, points, monthly as "Monthly downloads", release_days as "Days since last release", stars as "Stars"
58-
:colwidths: 10, 20, 35,10, 5, 5, 5, 10, 5
57+
:columns: id, package_summary as "Description", sphinx_type as "Type", tags, website_nice as "Website", license, points, monthly as "Monthly downloads", release_days as "Days since last release", stars as "Stars"
58+
:colwidths: 10,45,5,10,5,5,5,5,5,5
5959
:style_row: awesome_[[copy('color')]]
6060

6161

‎docs/tags.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% for tag, desc in project_tags.items() %}
1+
{% for tag, desc in project_tags.items()|sort() %}
22
.. _tag_{{tag}}:
33

44
{{tag|capitalize}}

‎projects.py

+8-5
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,18 @@
2525
# List of of projects, which have set one of the above classifiers, but shall be ignored.
2626
# Mostly because they are not reallyy related to Sphinx or just use Sphinx for documentation.
2727
IGNORE_PROJECTS = [
28-
28+
"ALVEOLUS"
2929
]
3030

31-
# Dict of allowed tags for a project.
31+
# Dict of tags to document.
3232
# Is used to generate tag specific overviews.
3333
# Key is used for filtering, the value as documentation
3434
PROJECT_TAGS = {
3535
'needs': 'All `Sphinx-Needs <https://www.sphinx-needs.com/>`__ related extensions and maybe themes.',
36-
'image_processing': 'Extensions dealing with images and their presentation.',
37-
'layout': 'Extension which help to structure your dcument data e.g. by grids or dropdowns.',
36+
'layout': 'Extensions which help to structure your dcument data e.g. by grids or dropdowns.',
3837
'pdf': 'Extensions which are dealing with PDFs.',
39-
}
38+
'hacktoberfest': 'Projects, which are part of the `Hacktoberfest <https://hacktoberfest.com/>`__.',
39+
'markdown': 'Extensions and tools, which support Markdown in Sphinx projects.',
40+
'doxygen': 'Doxygen support inside Sphinx.',
41+
'python': 'Support of the Python programming language',
42+
}

‎scripts/awesome_config.py

+12
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,18 @@
88
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
99
from projects import PROJECT_FILTERS, EXTRA_PROJECTS, IGNORE_PROJECTS
1010

11+
# A list of tags, which shall not be set, as they are too commonly used.
12+
PROJECT_IGNORE_TAGS = [
13+
"sphinxcontrib",
14+
"sphinx",
15+
"documentation",
16+
"sphinx-theme",
17+
"sphinx-extension",
18+
"theme",
19+
"extension",
20+
"documentation-tool",
21+
"documentation-generator",
22+
]
1123

1224
##################################################
1325
# PYPI_JSON.PY configs

‎scripts/github_stats.py

+8-6
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from awesome_config import *
1313

1414

15-
KEY = "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"
15+
KEY = os.environ['GH_KEY']
1616

1717

1818
def get_gh_topics(name, gh_project, results, counter):
@@ -33,8 +33,8 @@ def get_gh_topics(name, gh_project, results, counter):
3333

3434

3535

36-
print(f'Reading pypi data from {PYPI_FILE}')
37-
with open(PYPI_FILE, 'r') as f:
36+
print(f'Reading pypi data from {JSON_FILE}')
37+
with open(JSON_FILE, 'r') as f:
3838
pypi_data = json.load(f)
3939

4040
gh_projects={}
@@ -61,7 +61,7 @@ def get_gh_topics(name, gh_project, results, counter):
6161
gh_urls_clean = []
6262
for url in gh_urls:
6363
if url is not None and 'github.com' in url and '/issues' not in url:
64-
url_clean = url.replace('https://github.com/', '').strip('/')
64+
url_clean = url.replace('https://github.com/', '').replace('https://github.com/', '').strip('/')
6565
gh_urls_clean.append(url_clean)
6666

6767
if gh_urls_clean:
@@ -83,6 +83,10 @@ def get_gh_topics(name, gh_project, results, counter):
8383
threads[name].start()
8484
counter += 1
8585

86+
for thre in threads.values():
87+
thre.join()
88+
89+
8690
print(f'Received {len(results)} tag-results from GitHub')
8791

8892
for name, project in pypi_data.items():
@@ -98,5 +102,3 @@ def get_gh_topics(name, gh_project, results, counter):
98102

99103
print('Done. Exit now!')
100104

101-
# for repo in g.get_user().get_repos():
102-
# print(repo.name)

‎scripts/needs_json.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ def classifiers_check(value, classifiers):
7171
overall = 0
7272

7373
try:
74-
tags = data['awesome_stats']['tags']
74+
tags = []
75+
for tag in data['awesome_stats']['tags']:
76+
if tag not in PROJECT_IGNORE_TAGS:
77+
tags.append(tag)
7578
except KeyError:
7679
tags = []
7780

0 commit comments

Comments
 (0)
Please sign in to comment.