Skip to content

Commit 8e6a9a1

Browse files
committed
Expand usage of doctoc for md file table of content generation
1 parent a611f7a commit 8e6a9a1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+1959
-219
lines changed

.github/workflows/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v4
18-
- run: npx doctoc doc/JSON/JSON_INFO.md --github
18+
- run: npx doctoc --github --title "*Contents*" --update-only doc/
1919
- name: Create Pull Request
2020
uses: peter-evans/create-pull-request@v6
2121
with:

doc/ASCII_ART.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
2+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
3+
*Contents*
4+
5+
- [Making ASCII art for CDDA](#making-ascii-art-for-cdda)
6+
- [ASCII art Editors](#ascii-art-editors)
7+
- [Installing REXPaint](#installing-rexpaint)
8+
- [Drawing](#drawing)
9+
- [Exporting](#exporting)
10+
11+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
12+
113
## Making ASCII art for CDDA
214
### ASCII art Editors
315
ASCII art can be made using any text editor, such as Notepad, but it's more convenient to use an editor created for making ASCII art. There are many ASCII art editors on the internet, but this guide focuses on REXPaint because aside from many useful features like drawing ellipses, rectangles, lines and other shapes, it's the only editor with the option to export images to a format readable by CDDA. Note that this is not a comprehensive REXPaint manual, you can find the full manual [here](https://github.com/Lucide/REXPaint-manual/blob/master/manual.md) or in your REXPaint folder.

doc/CONTRIBUTING.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,36 @@
1+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
2+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
3+
*Contents*
4+
5+
- [Contribute](#contribute)
6+
- [Licensing and Authorship](#licensing-and-authorship)
7+
- [Using a good text editor](#using-a-good-text-editor)
8+
- [All PRs must have a "Summary" section](#all-prs-must-have-a-summary-section)
9+
- [Contributing via GitHub](#contributing-via-github)
10+
- [Code Style](#code-style)
11+
- [Translations](#translations)
12+
- [Doxygen Comments](#doxygen-comments)
13+
- [Guidelines for adding documentation](#guidelines-for-adding-documentation)
14+
- [Building the documentation for viewing it locally](#building-the-documentation-for-viewing-it-locally)
15+
- [Example Workflow](#example-workflow)
16+
- [Setup your environment](#setup-your-environment)
17+
- [Update your `master` branch](#update-your-master-branch)
18+
- [Make your changes](#make-your-changes)
19+
- [Drafts](#drafts)
20+
- [Comment requests](#comment-requests)
21+
- [Keep your PR description relevant](#keep-your-pr-description-relevant)
22+
- [Closing issues using keywords](#closing-issues-using-keywords)
23+
- [Tooling support](#tooling-support)
24+
- [Advanced Techniques](#advanced-techniques)
25+
- [Using remote tracking branches](#using-remote-tracking-branches)
26+
- [Unit tests](#unit-tests)
27+
- [In-game testing, test environment and the debug menu](#in-game-testing-test-environment-and-the-debug-menu)
28+
- [Frequently Asked Questions](#frequently-asked-questions)
29+
- [Why does `git pull --ff-only` result in an error?](#why-does-git-pull---ff-only-result-in-an-error)
30+
- [Oh no! I've made my changes to `master` branch and have pushed it to my repo! What should I do now?](#oh-no-ive-made-my-changes-to-master-branch-and-have-pushed-it-to-my-repo-what-should-i-do-now)
31+
32+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
33+
134
# Contribute
235

336
**Opening a new issue?** Please read [ISSUES.md](../ISSUES.md) first.

doc/DEVELOPER_FAQ.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
2+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
3+
*Contents*
4+
5+
- [Developer FAQ](#developer-faq)
6+
- [Adding stuff](#adding-stuff)
7+
- [Adding a monster](#adding-a-monster)
8+
- [Adding structures to the map](#adding-structures-to-the-map)
9+
- [Adding a bionic](#adding-a-bionic)
10+
- [How armor protection is calculated](#how-armor-protection-is-calculated)
11+
- [Adding an iuse function.](#adding-an-iuse-function)
12+
- [Acid resistance](#acid-resistance)
13+
- [FAQ](#faq)
14+
15+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
16+
117
# Developer FAQ
218

319
## Adding stuff

doc/GUN_NAMING_AND_INCLUSION.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
2+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
3+
*Contents*
4+
5+
- [Gun Naming and Inclusion Guidelines](#gun-naming-and-inclusion-guidelines)
6+
- [Generic Guns](#generic-guns)
7+
- [Gun Brand Names (`gun` type variants)](#gun-brand-names-gun-type-variants)
8+
- [Inclusion Criteria](#inclusion-criteria)
9+
- [Rarity Threshold](#rarity-threshold)
10+
- [Civilian Firearms](#civilian-firearms)
11+
- [Military and Police Firearms](#military-and-police-firearms)
12+
- [Difference Threshold](#difference-threshold)
13+
- [Gun Naming](#gun-naming)
14+
- [Rule 1 (Descriptive Names): What is this?](#rule-1-descriptive-names-what-is-this)
15+
- [Rule 2 (Identifier Check): What goes with this?](#rule-2-identifier-check-what-goes-with-this)
16+
17+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
18+
119
# Gun Naming and Inclusion Guidelines
220

321
Cataclysm: Dark Days Ahead includes much of the complexity embodied by guns in

doc/HOW_YOU_CAN_HELP.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
2+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
3+
*Contents*
4+
5+
- [How You Can Help](#how-you-can-help)
6+
- [Other ways to help](#other-ways-to-help)
7+
- [Issue labels](#issue-labels)
8+
- [Languages](#languages)
9+
- [Issue Types](#issue-types)
10+
- [Gameplay Categories](#gameplay-categories)
11+
- [Flags](#flags)
12+
13+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
14+
115
# How You Can Help
216

317
CDDA is maintained by thousands of volunteers, organized by a core development team. There are many

doc/IN_REPO_MODS.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
2+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
3+
*Contents*
4+
5+
- [Getting Mods Into The Repository](#getting-mods-into-the-repository)
6+
- [Why have in-repo mods?](#why-have-in-repo-mods)
7+
- [What kind of mods can be in the CleverRaven repository?](#what-kind-of-mods-can-be-in-the-cleverraven-repository)
8+
- [What is necessary for a mod to be included in the repository?](#what-is-necessary-for-a-mod-to-be-included-in-the-repository)
9+
- [What are the responsibilities of a mod curator?](#what-are-the-responsibilities-of-a-mod-curator)
10+
- [When do mods get removed?](#when-do-mods-get-removed)
11+
- [Why do mods get removed?](#why-do-mods-get-removed)
12+
- [How can mods be rescued from removal?](#how-can-mods-be-rescued-from-removal)
13+
14+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
15+
116
# Getting Mods Into The Repository
217

318
Cataclysm: Dark Days Ahead is not only moddable, but ships with a number of mods available for users to select from even without having to obtain mods from a third party source.

doc/ISSUE_TRIAGE.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
2+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
3+
*Contents*
4+
5+
- [Why triage?](#why-triage)
6+
- [How does triage work?](#how-does-triage-work)
7+
- [Is this a bug report or a feature request?](#is-this-a-bug-report-or-a-feature-request)
8+
- [Bug priority](#bug-priority)
9+
- [Bug validity](#bug-validity)
10+
- [Feature request validity](#feature-request-validity)
11+
- [Outcomes for invalid feature requests](#outcomes-for-invalid-feature-requests)
12+
13+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
14+
115
## Why triage?
216

317
Triage is a process of sanity checking and prioritizing issues. The term is adopted from medical contexts where patients are briefly examined to decide whether they need immediate care, or if their issue can wait until patients at greater risk can be handled first.

doc/JSON/ARTIFACTS.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
2+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
3+
*Contents*
4+
5+
- [Artifacts](#artifacts)
6+
- [Introduction](#introduction)
7+
- [Generation](#generation)
8+
- [charge_types](#charge_types)
9+
- [recharge_types](#recharge_types)
10+
- [recharge_conditions](#recharge_conditions)
11+
- [passive_add_procgen_values and passive_mult_procgen_values](#passive_add_procgen_values-and-passive_mult_procgen_values)
12+
- [ench_has](#ench_has)
13+
- [type_weights](#type_weights)
14+
- [items](#items)
15+
- [Power Level](#power-level)
16+
- [Resonance](#resonance)
17+
18+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
19+
120
# Artifacts
221

322
## Introduction

doc/JSON/BASECAMP.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
2+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
3+
*Contents*
4+
5+
- [Basecamp](#basecamp)
6+
- [Recommended reading](#recommended-reading)
7+
- [Adding alternate basecamp upgrade paths](#adding-alternate-basecamp-upgrade-paths)
8+
- [recipe JSONs](#recipe-jsons)
9+
- [blueprint requires, provides, and excludes](#blueprint-requires-provides-and-excludes)
10+
- [Sample recipe JSON](#sample-recipe-json)
11+
- [mapgen update JSON](#mapgen-update-json)
12+
- [Sample mapgen update JSON](#sample-mapgen-update-json)
13+
- [Parametric mapgen](#parametric-mapgen)
14+
- [Recipe groups](#recipe-groups)
15+
- [Upgrade Paths and Expansions](#upgrade-paths-and-expansions)
16+
- [Examples](#examples)
17+
- [Sample basecamp upgrade path](#sample-basecamp-upgrade-path)
18+
- [Modular Basecamp conventions](#modular-basecamp-conventions)
19+
- [Layout](#layout)
20+
- [Naming scheme](#naming-scheme)
21+
- [Adding basecamp expansions](#adding-basecamp-expansions)
22+
23+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
24+
125
# Basecamp
226

327
## Recommended reading

0 commit comments

Comments
 (0)