mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 20:11:12 +01:00
Stop generating decisions into the proposal index (#462)
This commit is contained in:
@@ -14,7 +14,6 @@ For accepted proposals, where `####` is the corresponding proposal's pull
|
||||
request:
|
||||
|
||||
- `p####.md` will contain the main proposal text.
|
||||
- `p####-decision.md` documents the decision and rationale.
|
||||
- `p####` may be present as an optional subdirectory for related files (for
|
||||
example, images).
|
||||
|
||||
@@ -24,47 +23,26 @@ request:
|
||||
<!-- Generated by ./scripts/update_proposal_list.py -->
|
||||
|
||||
- [0029 - Linear, rebase, and pull-request GitHub workflow](p0029.md)
|
||||
- [0029 - Decision](p0029_decision.md)
|
||||
- [0042 - Create code review guidelines](p0042.md)
|
||||
- [0042 - Decision](p0042_decision.md)
|
||||
- [0044 - Proposal tracking](p0044.md)
|
||||
- [0044 - Decision](p0044_decision.md)
|
||||
- [0051 - Goals](p0051.md)
|
||||
- [0051 - Decision](p0051_decision.md)
|
||||
- [0063 - Criteria for Carbon to go public](p0063.md)
|
||||
- [0063 - Decision](p0063_decision.md)
|
||||
- [0074 - Change comment/decision timelines in proposal process](p0074.md)
|
||||
- [0074 - Decision](p0074_decision.md)
|
||||
- [0083 - In-progress design overview](p0083.md)
|
||||
- [0083 - Decision](p0083_decision.md)
|
||||
- [0107 - Code and name organization](p0107.md)
|
||||
- [0107 - Decision](p0107_decision.md)
|
||||
- [0113 - Add a C++ style guide](p0113.md)
|
||||
- [0113 - Decision](p0113_decision.md)
|
||||
- [0120 - Add idiomatic code performance and developer-facing docs to goals](p0120.md)
|
||||
- [0120 - Decision](p0120_decision.md)
|
||||
- [0142 - Unicode source files](p0142.md)
|
||||
- [0142 - Decision](p0142_decision.md)
|
||||
- [0143 - Numeric literals](p0143.md)
|
||||
- [0143 - Decision](p0143_decision.md)
|
||||
- [0149 - Change documentation style guide](p0149.md)
|
||||
- [0149 - Decision](p0149_decision.md)
|
||||
- [0157 - Design direction for sum types](p0157.md)
|
||||
- [0157 - Decision](p0157_decision.md)
|
||||
- [0162 - Basic Syntax](p0162.md)
|
||||
- [0162 - Decision](p0162_decision.md)
|
||||
- [0175 - C++ interoperability goals](p0175.md)
|
||||
- [0175 - Decision](p0175_decision.md)
|
||||
- [0179 - Create a toolchain team.](p0179.md)
|
||||
- [0179 - Decision](p0179_decision.md)
|
||||
- [0196 - Language-level safety strategy](p0196.md)
|
||||
- [0196 - Decision](p0196_decision.md)
|
||||
- [0198 - Comments](p0198.md)
|
||||
- [0198 - Decision](p0198_decision.md)
|
||||
- [0199 - String literals](p0199.md)
|
||||
- [0199 - Decision](p0199_decision.md)
|
||||
- [0253 - 2021 Roadmap](p0253.md)
|
||||
- [0253 - Decision](p0253_decision.md)
|
||||
- [0285 - if/else](p0285.md)
|
||||
- [0426 - Governance & evolution revamp](p0426.md)
|
||||
|
||||
|
||||
@@ -36,7 +36,4 @@ def get_list(proposals_path):
|
||||
number = match[1]
|
||||
title = get_title(proposals_path, f)
|
||||
proposals.append(("%s - %s" % (number, title), f))
|
||||
decision_file = "p%s_decision.md" % number
|
||||
if decision_file in proposals_list:
|
||||
proposals.append(("%s - Decision" % number, decision_file))
|
||||
return proposals
|
||||
|
||||
@@ -22,7 +22,6 @@ class TestProposal(unittest.TestCase):
|
||||
"p0029.md",
|
||||
),
|
||||
)
|
||||
self.assertEqual(p[1], ("0029 - Decision", "p0029_decision.md"))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
@@ -31,10 +31,7 @@ if __name__ == "__main__":
|
||||
out.write("<!-- Generated by ./scripts/update_proposal_list.py -->\n\n")
|
||||
results = out.getvalue()
|
||||
for title, filename in proposals.get_list(proposals_path):
|
||||
indent = ""
|
||||
if filename.endswith("decision.md"):
|
||||
indent = " "
|
||||
out.write("%s- [%s](%s)\n" % (indent, title, filename))
|
||||
out.write("- [%s](%s)\n" % (title, filename))
|
||||
toc = out.getvalue()
|
||||
|
||||
# Replace the README content if needed.
|
||||
|
||||
Reference in New Issue
Block a user