File tree Expand file tree Collapse file tree 2 files changed +16
-5
lines changed Expand file tree Collapse file tree 2 files changed +16
-5
lines changed Original file line number Diff line number Diff line change 64
64
editor = u'Andreas Rossberg (editor)'
65
65
logo = 'static/webassembly.png'
66
66
67
+ # The name of the GitHub repository this resides in
68
+ repo = 'spec'
69
+
70
+ # The name of the proposal it represents, if any
71
+ proposal = ''
72
+
73
+ # The draft version string (clear out for release cuts)
74
+ draft = ' (Draft ' + date .today ().strftime ("%Y-%m-%d" ) + ')'
75
+
67
76
# The version info for the project you're documenting, acts as replacement for
68
77
# |version| and |release|, also used in various other places throughout the
69
78
# built documents.
70
79
#
71
80
# The short X.Y version.
72
81
version = u'1.1'
73
82
# The full version, including alpha/beta/rc tags.
74
- release = version + ' (Draft ' + date . today (). strftime ( "%Y-%m-%d" ) + ')'
83
+ release = version + ( '' if proposal == '' else ' + ' ) + proposal + draft
75
84
76
85
# The language for content autogenerated by Sphinx. Refer to documentation
77
86
# for a list of supported languages.
477
486
478
487
# Macros
479
488
rst_prolog = """
489
+ .. |issuelink| replace:: https://github.com/webassembly/""" + repo + """/issues/
490
+ .. |pagelink| replace:: https://webassembly.github.io/""" + repo + """/core/
480
491
.. include:: /""" + pwd + """/util/macros.def
481
492
"""
482
493
Original file line number Diff line number Diff line change 3
3
.. External Standards
4
4
.. ------------------
5
5
6
- .. |WasmDraft| replace:: https://webassembly.github.io/spec/core/
7
- .. _WasmDraft: https://webassembly.github.io/spec/core/
6
+ .. |WasmDraft| replace:: |pagelink|
7
+ .. _WasmDraft: |pagelink|
8
8
9
- .. |WasmIssues| replace:: https://github.com/webassembly/spec/issues/
10
- .. _WasmIssues: https://github.com/webassembly/spec/issues/
9
+ .. |WasmIssues| replace:: |issuelink|
10
+ .. _WasmIssues: |issuelink|
11
11
12
12
.. |IEEE754| replace:: IEEE 754-2019
13
13
.. _IEEE754: https://ieeexplore.ieee.org/document/8766229
You can’t perform that action at this time.
0 commit comments