Skip to content

Commit 86fa289

Browse files
chore: update to Ubuntu noble manpages
1 parent 04adb1d commit 86fa289

File tree

7 files changed

+13
-10
lines changed

7 files changed

+13
-10
lines changed

explainshell/manpage.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,10 @@ def _parse_text(lines):
132132
section = None
133133
i = 0
134134
for ln in lines:
135+
# TODO: check if this url is still valid
135136
ln = re.sub(
136137
_href,
137-
r'<a href="http://manpages.ubuntu.com/manpages/precise/en/man\2/\1.\2.html">',
138+
r'<a href="https://manpages.ubuntu.com/manpages/noble/en/man\2/\1.\2.html">',
138139
ln,
139140
)
140141
for look_for, rp_with in _replacements:

explainshell/web/templates/about.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<div id="about">
55
<p>Hello,</p>
66
<p>This site contains 29761 parsed manpages from sections 1 and 8 found in
7-
<a href="http://manpages.ubuntu.com/">Ubuntu's manpage repository</a>.
7+
<a href="https://manpages.ubuntu.com/">Ubuntu's manpage repository</a>.
88
A lot of heuristics were used to extract the arguments of each
99
program, and there are errors here and there, especially in
1010
manpages that have a non-standard layout.</p>

explainshell/web/templates/explain.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<div class="push"></div><div class="text-center"><small>
4141
{% for m in matches if m.name %}
4242
{% if loop.first %}source manpages: {% endif %}
43-
<a href="http://manpages.ubuntu.com/manpages/precise/en/man{{ m.section }}/{{ m.source|e }}.html">{{ m.name|e }}</a>{% if not loop.last %},&nbsp;{% endif %}
43+
<a href="https://manpages.ubuntu.com/manpages/precise/en/man{{ m.section }}/{{ m.source|e }}.html">{{ m.name|e }}</a>{% if not loop.last %},&nbsp;{% endif %}
4444
{% endfor %}
4545
</small></div>
4646
{%- endblock %}

explainshell/web/templates/macros.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{% macro outputcommand(mp, suggestions) -%}
22
{% if suggestions|length == 0 %}
3-
<a href="http://manpages.ubuntu.com/manpages/precise/en/man{{ mp.section }}/{{ mp.source }}.html">{{ mp.program|e }}</a>
3+
<a href="https://manpages.ubuntu.com/manpages/precise/en/man{{ mp.section }}/{{ mp.source }}.html">{{ mp.program|e }}</a>
44
{% else %}
55
<span class="dropdown">
66
<b class="caret" data-toggle="dropdown"></b>
7-
<a href="http://manpages.ubuntu.com/manpages/precise/en/man{{ mp.section }}/{{ mp.source }}.html">{{ mp.program|e }}</a>
7+
<a href="https://manpages.ubuntu.com/manpages/precise/en/man{{ mp.section }}/{{ mp.source }}.html">{{ mp.program|e }}</a>
88
<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu">
99
<li>other manpages</li>
1010
<li class="divider"></li>

explainshell/web/templates/tagger.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="small-push"></div>
44
<div class="push"></div>
55
<div id="command">
6-
<a href="http://manpages.ubuntu.com/manpages/precise/en/man1/{{ m.name }}.html">{{ m.name|e }}</a> - {{ m.synopsis|e
6+
<a href="https://manpages.ubuntu.com/manpages/precise/en/man1/{{ m.name }}.html">{{ m.name|e }}</a> - {{ m.synopsis|e
77
}}
88
</div>
99
<div class="small-push"></div>

tools/dlgzlist

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ while read url; do
77

88
python -c 'import time, random; time.sleep(float(random.randint(1000, 2000)) / 1000)'
99
wget -nv "$url" || echo "$url" >> failed
10-
done < gzlist
10+
done < gzlist8
11+
12+
mv -f *.8.gz ../manpages/8/

tools/extractgzlist

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/bin/bash
22

3-
release="precise"
3+
release="noble"
44
section="8"
5-
man1list="http://manpages.ubuntu.com/manpages/$release/en/man$section/"
6-
gzroot="http://manpages.ubuntu.com/manpages.gz/$release/man$section/"
5+
man1list="https://manpages.ubuntu.com/manpages/$release/en/man$section/"
6+
gzroot="https://manpages.ubuntu.com/manpages.gz/$release/man$section/"
77
filename="index$section.html"
88

99
if ! [ -f $filename ]; then

0 commit comments

Comments
 (0)