Skip to content

Commit 943f2cc

Browse files
authored
update link, master to release (#399)
1 parent b3c392b commit 943f2cc

File tree

3 files changed

+17
-7
lines changed

3 files changed

+17
-7
lines changed

docs/conf.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ def __getattr__(cls, name):
3939
# Add any Sphinx extension module names here, as strings. They can be extensions
4040
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
4141
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx',\
42-
'sphinx.ext.coverage', 'sphinx.ext.mathjax', 'sphinx.ext.extlinks']
42+
'sphinx.ext.coverage', 'sphinx.ext.mathjax', 'sphinx.ext.extlinks',\
43+
'sphinx_substitution_extensions']
4344

4445
# Add any paths that contain templates here, relative to this directory.
4546
templates_path = ['_templates']
@@ -190,6 +191,9 @@ def __getattr__(cls, name):
190191
# Output file base name for HTML help builder.
191192
htmlhelp_basename = 'KoNLPydoc'
192193

194+
rst_prolog = f"""
195+
.. |release| replace:: v{release}
196+
"""
193197

194198
# -- Options for LaTeX output --------------------------------------------------
195199

docs/install.rst

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,12 @@ Supported: Xenial(16.04.3 LTS), Bionic(18.04.3 LTS), Disco(19.04), Eoan(19.10)
3737

3838
3. Install MeCab (*optional*)
3939

40-
.. sourcecode:: bash
40+
.. code-block:: bash
41+
:substitutions:
4142
4243
$ sudo apt-get install curl git
43-
$ bash <(curl -s https://raw.githubusercontent.com/konlpy/konlpy/master/scripts/mecab.sh)
44+
$ bash <(curl -s https://raw.githubusercontent.com/konlpy/konlpy/|release|/scripts/mecab.sh)
45+
4446
4547
4648
CentOS
@@ -63,10 +65,11 @@ Supported: CentOS 7, 8
6365

6466
3. Install MeCab (*optional*)
6567

66-
.. sourcecode:: bash
68+
.. code-block:: bash
69+
:substitutions:
6770
6871
$ sudo yum install curl git
69-
$ bash <(curl -s https://raw.githubusercontent.com/konlpy/konlpy/master/scripts/mecab.sh)
72+
$ bash <(curl -s https://raw.githubusercontent.com/konlpy/konlpy/|release|/scripts/mecab.sh)
7073
7174
7275
Mac OS
@@ -81,9 +84,10 @@ Mac OS
8184

8285
2. Install MeCab (*optional*)
8386

84-
.. sourcecode:: bash
87+
.. code-block:: bash
88+
:substitutions:
8589
86-
$ bash <(curl -s https://raw.githubusercontent.com/konlpy/konlpy/master/scripts/mecab.sh)
90+
$ bash <(curl -s https://raw.githubusercontent.com/konlpy/konlpy/|release|/scripts/mecab.sh)
8791
8892
8993
Windows

requirements-dev.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
-r requirements.txt
12
check-manifest>=0.34
23
mock>=4.0.3
34
pep8>=1.7.0
45
pyroma>=2.2
56
pytest-cov>=1.8.1
67
pytest>=2.6.4
78
sphinx>=4.3.2
9+
Sphinx-Substitution-Extensions==2022.2.16
810
twine>=3.7.1
911
wheel>=0.31.1

0 commit comments

Comments
 (0)