Skip to content

Commit 901ba2e

Browse files
committed
Configuration, templates and wording
Reusing much from https://github.com/ghc-proposals/ghc-proposals.
1 parent 2f07eed commit 901ba2e

10 files changed

+558
-1
lines changed

Diff for: .gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
_build
2+
_venv

Diff for: Makefile

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Minimal makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line.
5+
SPHINXOPTS =
6+
SPHINXBUILD = sphinx-build
7+
SPHINXPROJ = hail-proposals
8+
SOURCEDIR = .
9+
BUILDDIR = _build
10+
11+
# Put it first so that "make" without argument is like "make help".
12+
help:
13+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14+
15+
.PHONY: help Makefile
16+
17+
# Catch-all target: route all unknown targets to Sphinx using the new
18+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19+
%: Makefile
20+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

Diff for: README.md

-1
This file was deleted.

Diff for: README.rst

+223
Large diffs are not rendered by default.

Diff for: conf.py

+153
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,153 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# Configuration file for the Sphinx documentation builder.
4+
#
5+
# This file does only contain a selection of the most common options. For a
6+
# full list see the documentation:
7+
# https://www.sphinx-doc.org/en/master/usage/configuration.html
8+
9+
# -- Path setup --------------------------------------------------------------
10+
11+
# If extensions (or modules to document with autodoc) are in another directory,
12+
# add these directories to sys.path here. If the directory is relative to the
13+
# documentation root, use os.path.abspath to make it absolute, like shown here.
14+
#
15+
# import os
16+
# import sys
17+
# sys.path.insert(0, os.path.abspath('.'))
18+
19+
20+
# -- Project information -----------------------------------------------------
21+
22+
project = u'hail-rfc'
23+
copyright = u'2023, Broad Institute'
24+
author = u''
25+
26+
# The short X.Y version
27+
version = u''
28+
# The full version, including alpha/beta/rc tags
29+
release = u''
30+
31+
32+
# -- General configuration ---------------------------------------------------
33+
34+
# If your documentation needs a minimal Sphinx version, state it here.
35+
#
36+
# needs_sphinx = '1.0'
37+
38+
# Add any Sphinx extension module names here, as strings. They can be
39+
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
40+
# ones.
41+
extensions = [
42+
]
43+
44+
# Add any paths that contain templates here, relative to this directory.
45+
templates_path = ['_templates']
46+
47+
# The suffix(es) of source filenames.
48+
# You can specify multiple suffix as a list of string:
49+
#
50+
# source_suffix = ['.rst', '.md']
51+
source_suffix = '.rst'
52+
53+
# The main toctree document.
54+
main_doc = 'index'
55+
56+
# The language for content autogenerated by Sphinx. Refer to documentation
57+
# for a list of supported languages.
58+
#
59+
# This is also used if you do content translation via gettext catalogs.
60+
# Usually you set "language" from the command line for these cases.
61+
language = None
62+
63+
# List of patterns, relative to source directory, that match files and
64+
# directories to ignore when looking for source files.
65+
# This pattern also affects html_static_path and html_extra_path .
66+
exclude_patterns = [u'_build', 'Thumbs.db', '.DS_Store', "rfc/0000-template.rst"]
67+
68+
# The name of the Pygments (syntax highlighting) style to use.
69+
pygments_style = 'sphinx'
70+
71+
72+
# -- Options for HTML output -------------------------------------------------
73+
74+
# The theme to use for HTML and HTML Help pages. See the documentation for
75+
# a list of builtin themes.
76+
#
77+
html_theme = 'haiku'
78+
79+
# Theme options are theme-specific and customize the look and feel of a theme
80+
# further. For a list of options available for each theme, see the
81+
# documentation.
82+
#
83+
# html_theme_options = {}
84+
85+
# Add any paths that contain custom static files (such as style sheets) here,
86+
# relative to this directory. They are copied after the builtin static files,
87+
# so a file named "default.css" will overwrite the builtin "default.css".
88+
html_static_path = ['_static']
89+
90+
# Custom sidebar templates, must be a dictionary that maps document names
91+
# to template names.
92+
#
93+
# The default sidebars (for documents that don't match any pattern) are
94+
# defined by theme itself. Builtin themes are using these templates by
95+
# default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
96+
# 'searchbox.html']``.
97+
#
98+
# html_sidebars = {}
99+
100+
101+
# -- Options for HTMLHelp output ---------------------------------------------
102+
103+
# Output file base name for HTML help builder.
104+
htmlhelp_basename = 'hail-proposalsdoc'
105+
106+
107+
# -- Options for LaTeX output ------------------------------------------------
108+
109+
latex_elements = {
110+
# The paper size ('letterpaper' or 'a4paper').
111+
#
112+
# 'papersize': 'letterpaper',
113+
114+
# The font size ('10pt', '11pt' or '12pt').
115+
#
116+
# 'pointsize': '10pt',
117+
118+
# Additional stuff for the LaTeX preamble.
119+
#
120+
# 'preamble': '',
121+
122+
# Latex figure (float) alignment
123+
#
124+
# 'figure_align': 'htbp',
125+
}
126+
127+
# Grouping the document tree into LaTeX files. List of tuples
128+
# (source start file, target name, title,
129+
# author, documentclass [howto, manual, or own class]).
130+
latex_documents = [
131+
(main_doc, 'hail-proposals.tex', u'Hail Proposals', u'Hail', 'manual'),
132+
]
133+
134+
135+
# -- Options for manual page output ------------------------------------------
136+
137+
# One entry per manual page. List of tuples
138+
# (source start file, name, description, authors, manual section).
139+
man_pages = [
140+
(main_doc, 'hail-proposals', u'Hail Proposals', [author], 1)
141+
]
142+
143+
144+
# -- Options for Texinfo output ----------------------------------------------
145+
146+
# Grouping the document tree into Texinfo files. List of tuples
147+
# (source start file, target name, title, author,
148+
# dir menu entry, description, category)
149+
texinfo_documents = [
150+
(main_doc, 'hail-proposals', u'Hail Proposals',
151+
author, 'hail-proposals', 'One line description of project.',
152+
'Miscellaneous'),
153+
]

Diff for: index.rst

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
All accepted Hail Proposals
2+
==========================
3+
4+
.. toctree::
5+
:maxdepth: 1
6+
:caption: Contents:
7+
:glob:
8+
9+
README.rst
10+
hail.rst
11+
rfc/*
12+
13+
14+
Indices and tables
15+
==================
16+
17+
* :ref:`genindex`
18+
* :ref:`modindex`
19+
* :ref:`search`

Diff for: inline-comment.png

16.7 KB
Loading

Diff for: rfc/0000-template.rst

+126
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
Notes on reStructuredText - delete this section before submitting
2+
==================================================================
3+
4+
The proposals are submitted in reStructuredText format.
5+
To get inline code, enclose text in double backticks, ``like this``, or include
6+
inline syntax highlighting [scala]`like this`.
7+
To get block code, use a double colon and indent by at least one space
8+
9+
::
10+
11+
like this
12+
and
13+
14+
this too
15+
16+
To get hyperlinks, use backticks, angle brackets, and an underscore
17+
`like this <http://www.hail.is/>`_.
18+
19+
==============
20+
Proposal title
21+
==============
22+
23+
.. author:: Your name
24+
.. date-accepted:: Leave blank. This will be filled in when the proposal is accepted.
25+
.. ticket-url:: Leave blank. This will eventually be filled with the
26+
ticket URL which will track the progress of the
27+
implementation of the feature.
28+
.. implemented:: Leave blank. This will be filled in with the first Hail version which
29+
implements the described feature.
30+
.. header:: This proposal is `discussed at this pull request <https://github.com/hail-is/hail-rfc/pull/0>`_.
31+
**After creating the pull request, edit this file again, update the
32+
number in the link, and delete this bold sentence.**
33+
.. sectnum::
34+
.. contents::
35+
.. role:: scala(code)
36+
37+
Here you should write a short abstract motivating and briefly summarizing the
38+
proposed change.
39+
40+
Motivation
41+
----------
42+
Give a strong reason for why the community needs this change. Describe the use
43+
case as clearly as possible and give an example. Explain how the status quo is
44+
insufficient or not ideal.
45+
46+
A good Motivation section is often driven by examples and real-world scenarios.
47+
48+
Proposed Change Specification
49+
-----------------------------
50+
Specify the change in precise, comprehensive yet concise language. Avoid words
51+
like "should" or "could". Strive for a complete definition. Your specification
52+
may include,
53+
54+
* the types and semantics of any new library interfaces
55+
* how the proposed change interacts with existing language or compiler
56+
features, in case that is otherwise ambiguous
57+
58+
Strive for *precision*. Note, however, that this section should focus on a
59+
precise *specification*; it need not (and should not) devote space to
60+
*implementation* details -- the "Implementation Plan" section can be used for
61+
that.
62+
63+
The specification can, and almost always should, be illustrated with
64+
*examples* that illustrate corner cases. But it is not sufficient to
65+
give a couple of examples and regard that as the specification! The
66+
examples should illustrate and elucidate a clearly-articulated
67+
specification that covers the general case.
68+
69+
Examples
70+
--------
71+
This section illustrates the specification through the use of examples of the
72+
language change proposed. It is best to exemplify each point made in the
73+
specification, though perhaps one example can cover several points. Contrived
74+
examples are OK here. If the Motivation section describes something that is
75+
hard to do without this proposal, this is a good place to show how easy that
76+
thing is to do with the proposal.
77+
78+
Effect and Interactions
79+
-----------------------
80+
Your proposed change addresses the issues raised in the motivation. Explain how.
81+
82+
Also, discuss possibly contentious interactions with existing language or compiler
83+
features. Complete this section with potential interactions raised
84+
during the PR discussion.
85+
86+
Costs and Drawbacks
87+
-------------------
88+
Give an estimate on development and maintenance costs. List how this affects
89+
learnability of the language for novice users. Define and list any remaining
90+
drawbacks that cannot be resolved.
91+
92+
Alternatives
93+
------------
94+
List alternative designs to your proposed change. Both existing
95+
workarounds, or alternative choices for the changes. Explain
96+
the reasons for choosing the proposed change over these alternative:
97+
*e.g.* they can be cheaper but insufficient, or better but too
98+
expensive. Or something else.
99+
100+
The PR discussion often raises other potential designs, and they should be
101+
added to this section. Similarly, if the proposed change
102+
specification changes significantly, the old one should be listed in
103+
this section.
104+
105+
Unresolved Questions
106+
--------------------
107+
Explicitly list any remaining issues that remain in the conceptual design and
108+
specification. Be upfront and trust that the community will help. Please do
109+
not list *implementation* issues.
110+
111+
Hopefully this section will be empty by the time the proposal is brought to
112+
the steering committee.
113+
114+
Implementation Plan
115+
-------------------
116+
(Optional) If accepted who will implement the change? Which other resources
117+
and prerequisites are required for implementation?
118+
119+
Endorsements
120+
-------------
121+
(Optional) This section provides an opportunity for any third parties to express their
122+
support for the proposal, and to say why they would like to see it adopted.
123+
It is not mandatory for have any endorsements at all, but the more substantial
124+
the proposal is, the more desirable it is to offer evidence that there is
125+
significant demand from the community. This section is one way to provide
126+
such evidence.

Diff for: rich-diff.png

8.89 KB
Loading

Diff for: venv.sh

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/sh
2+
3+
if [ -z "$SHELL" ]; then
4+
SHELL=/bin/sh
5+
fi
6+
7+
if [ ! -d _venv ]; then
8+
virtualenv _venv
9+
. _venv/bin/activate
10+
pip install sphinx
11+
exec $SHELL
12+
else
13+
. _venv/bin/activate
14+
exec $SHELL
15+
fi

0 commit comments

Comments
 (0)