Skip to content

Commit

Permalink
Merge pull request #79160 from moxian/doc-shuffle
Browse files Browse the repository at this point in the history
Assort doc files into appropriate subfolders for easier navigation
  • Loading branch information
GuardianDll authored Jan 16, 2025
2 parents 3e523d0 + fd15593 commit 69a4eb7
Show file tree
Hide file tree
Showing 105 changed files with 94 additions and 94 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/cross-compile/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
RUN apt-get -y install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools

# [Optional] comment out this section unless you want to cross-compile from Linux to Windows
# This section should align with doc/COMPILING/COMPILING.md#cross-compile-to-windows-from-linux
# This section should align with doc/c++/COMPILING.md#cross-compile-to-windows-from-linux
# With the exception of the installation of packages that are already installed earlier in the Dockerfile
# Like: astyle, cmake
RUN apt-get -y install autoconf automake autopoint bash bison bzip2 flex gettext git g++ \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ jobs:
uses: reviewdog/action-suggester@v1
if: ${{ always() }}
with:
tool_name: '[JSON & C++ formatters](https://github.com/CleverRaven/Cataclysm-DDA/blob/master/doc/DEVELOPER_TOOLING.md)'
tool_name: '[JSON & C++ formatters](https://github.com/CleverRaven/Cataclysm-DDA/blob/master/doc/c++/DEVELOPER_TOOLING.md)'
8 changes: 4 additions & 4 deletions .github/workflows/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
branches:
- master
paths:
- 'doc/JSON_INFO.md'
- 'doc/JSON/JSON_INFO.md'
name: TOC Generator
permissions:
contents: read
Expand All @@ -15,17 +15,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npx doctoc doc/JSON_INFO.md --github
- run: npx doctoc doc/JSON/JSON_INFO.md --github
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
commit-message: Update the table of contents
branch: update-toc
token: ${{ secrets.TX_PR_CREATOR }}
title: Update the table of contents in doc/JSON_INFO.md
title: Update the table of contents in doc/JSON/JSON_INFO.md
body: |
```sh
#### Summary
None
npx doctoc doc/JSON_INFO.md --github
npx doctoc doc/JSON/JSON_INFO.md --github
```
14 changes: 7 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ message(STATUS "LOCALIZE : ${LOCALIZE}")
message(STATUS "USE_XDG_DIR : ${USE_XDG_DIR}")
message(STATUS "USE_HOME_DIR : ${USE_HOME_DIR}")
message(STATUS "LANGUAGES : ${LANGUAGES}")
message(STATUS "See doc/COMPILING/COMPILING-CMAKE.md for details and more info --")
message(STATUS "See doc/c++/COMPILING-CMAKE.md for details and more info --")

if (NOT MSVC)
set(CATA_WARNINGS
Expand Down Expand Up @@ -255,7 +255,7 @@ if ("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
"This project requires an out of source build. \
Remove the file 'CMakeCache.txt' found in this directory before continuing; \
create a separate build directory and run 'cmake [options] <srcs>' from there. \
See doc/COMPILING/COMPILING-CMAKE.md for details and more info.")
See doc/c++/COMPILING-CMAKE.md for details and more info.")
endif ()

#set(THREADS_USE_PTHREADS_WIN32 True)
Expand Down Expand Up @@ -284,7 +284,7 @@ if (TILES)
"This project requires SDL2 to be installed to compile in graphical mode. \
Please install the SDL2 development libraries, \
or try compiling without -DTILES=1 for a text-only compilation. \
See doc/COMPILING/COMPILING-CMAKE.md for details and more info.")
See doc/c++/COMPILING-CMAKE.md for details and more info.")
endif ()

message(STATUS "Searching for SDL2_TTF library --")
Expand All @@ -294,7 +294,7 @@ if (TILES)
"This project requires SDL2_ttf to be installed to compile in graphical mode. \
Please install the SDL2_ttf development libraries, \
or try compiling without -DTILES=1 for a text-only compilation. \
See doc/COMPILING/COMPILING-CMAKE.md for details and more info.")
See doc/c++/COMPILING-CMAKE.md for details and more info.")
endif ()

message(STATUS "Searching for SDL2_image library --")
Expand All @@ -304,7 +304,7 @@ if (TILES)
"This project requires SDL2_image to be installed to compile in graphical mode. \
Please install the SDL2_image development libraries, \
or try compiling without -DTILES=1 for a text-only compilation. \
See doc/COMPILING/COMPILING-CMAKE.md for details and more info.")
See doc/c++/COMPILING-CMAKE.md for details and more info.")
endif ()
add_definitions(-DTILES)
endif ()
Expand Down Expand Up @@ -358,7 +358,7 @@ if (CURSES)
"This project requires ncurses to be installed to be compiled in text-only mode. \
Please install the ncurses development libraries, \
or try compiling with -DTILES=1 for a graphical compilation. \
See doc/COMPILING/COMPILING-CMAKE.md for details and more info")
See doc/c++/COMPILING-CMAKE.md for details and more info")
endif ()
if (NOT DYNAMIC_LINKING)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DNCURSES_STATIC")
Expand All @@ -374,7 +374,7 @@ if (SOUND)
message(FATAL_ERROR
"You need the SDL2_mixer development library \
to be able to compile with sound enabled. \
See doc/COMPILING/COMPILING-CMAKE.md for details and more info.")
See doc/c++/COMPILING-CMAKE.md for details and more info.")
endif()
endif ()

Expand Down
2 changes: 1 addition & 1 deletion ISSUES.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ You can update issues with labels using comment-commands. First, open a PR addin

### Questions

You should direct your questions to the forum or ask on IRC. You should also read the included documentation and additional text files, e.g. [COMPILING.md](doc/COMPILING/COMPILING.md) if you have problems building.
You should direct your questions to the forum or ask on IRC. You should also read the included documentation and additional text files, e.g. [COMPILING.md](doc/c++/COMPILING.md) if you have problems building.

## Bounties

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ Ncurses and tiles versions are available in the [official repos](https://tracker

## Compile

Please read [COMPILING.md](doc/COMPILING/COMPILING.md) - it covers general information and more specific recipes for Linux, OS X, Windows and BSD. See [COMPILER_SUPPORT.md](doc/COMPILING/COMPILER_SUPPORT.md) for details on which compilers we support. And you can always dig for more information in [doc/](https://github.com/CleverRaven/Cataclysm-DDA/tree/master/doc).
Please read [COMPILING.md](doc/c++/COMPILING.md) - it covers general information and more specific recipes for Linux, OS X, Windows and BSD. See [COMPILER_SUPPORT.md](doc/c++/COMPILER_SUPPORT.md) for details on which compilers we support. And you can always dig for more information in [doc/](https://github.com/CleverRaven/Cataclysm-DDA/tree/master/doc).

We also have the following build guides:
* Building on Windows with `MSYS2` at [COMPILING-MSYS.md](doc/COMPILING/COMPILING-MSYS.md)
* Building on Windows with `vcpkg` at [COMPILING-VS-VCPKG.md](doc/COMPILING/COMPILING-VS-VCPKG.md)
* Building with `cmake` at [COMPILING-CMAKE.md](doc/COMPILING/COMPILING-CMAKE.md) (*unofficial guide*)
* Building on Windows with `MSYS2` at [COMPILING-MSYS.md](doc/c++/COMPILING-MSYS.md)
* Building on Windows with `vcpkg` at [COMPILING-VS-VCPKG.md](doc/c++/COMPILING-VS-VCPKG.md)
* Building with `cmake` at [COMPILING-CMAKE.md](doc/c++/COMPILING-CMAKE.md) (*unofficial guide*)

## Contribute

Expand Down
2 changes: 1 addition & 1 deletion data/fontdata.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"//1": "See docs/FONT_OPTIONS.md for how to configure your fonts.",
"//1": "See docs/user-guides/FONT_OPTIONS.md for how to configure your fonts.",
"typeface": [
{ "path": "data/font/Terminus.ttf", "hinting": "Bitmap" },
"data/font/unifont.ttf"
Expand Down
2 changes: 1 addition & 1 deletion data/mods/translate-dialogue/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ vvvvvvvvvvvvvvvvvvvvvvvvv
Usage:
* `cd path/to/Cataclysm-DDA/`
* `python3 tools/json_tools/update-translate-dialogue-mod.py`
* then lint via `json_formatter.cgi`, check `doc/JSON_STYLE.md`
* then lint via `json_formatter.cgi`, check `doc/JSON/JSON_STYLE.md`
* You can also add `"//": "mod_update_script_compact"` to dynamic lines to make the script concatenate that line more compactly and without newlines, which is useful if the original dialog also uses concatenation.
2 changes: 1 addition & 1 deletion data/raw/imgui_style.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"//": "See doc/COLOR.md for documentation on how to use this file.",
"//": "See doc/user-guides/COLOR.md for documentation on how to use this file.",
"inherit_base_colors": false,
"colors": {

Expand Down
8 changes: 4 additions & 4 deletions doc/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ There are a couple of guidelines we suggest sticking to (see [#Example Workflow]
## Code Style

Code style is enforced across the codebase by `astyle`.
See [CODE_STYLE](../doc/CODE_STYLE.md) for details.
See [CODE_STYLE](../doc/c++/CODE_STYLE.md) for details.

## Translations

Expand Down Expand Up @@ -268,7 +268,7 @@ When your PR should close an issue, please include [closing keywords](https://he

## Tooling support

Various tools are available to help you keep your contributions conforming to the appropriate style. See [DEVELOPER_TOOLING.md](../doc/DEVELOPER_TOOLING.md) for more details.
Various tools are available to help you keep your contributions conforming to the appropriate style. See [DEVELOPER_TOOLING.md](../doc/c++/DEVELOPER_TOOLING.md) for more details.

## Advanced Techniques

Expand Down Expand Up @@ -341,9 +341,9 @@ The test took 41.772 seconds
It is recommended to habitually invoke make like ``make YOUR BUILD OPTIONS && make check``.
If you're working with Visual Studio (and don't have `make`), see [Visual Studio-specific advice](../doc/COMPILING/COMPILING-VS-VCPKG.md#running-unit-tests).
If you're working with Visual Studio (and don't have `make`), see [Visual Studio-specific advice](../doc/c++/COMPILING-VS-VCPKG.md#running-unit-tests).
If you want/need to add a test, see [TESTING.md](../doc/TESTING.md)
If you want/need to add a test, see [TESTING.md](../doc/c++/TESTING.md)
## In-game testing, test environment and the debug menu
Expand Down
4 changes: 2 additions & 2 deletions doc/FREQUENTLY_MADE_SUGGESTIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,12 @@ Currently it’s way too easy to accumulate NPC followers and end up becoming ef
#### Psychic powers: mod only

Not happening, it simply doesn’t fit the theme of the game.
However, Mind Over Matter is distributed with the game, and adds psychic powers. See [MAGIC.md](MAGIC.md) for more info.
However, Mind Over Matter is distributed with the game, and adds psychic powers. See [MAGIC.md](JSON/MAGIC.md) for more info.

#### Magic powers: mod only

Not happening, it simply doesn’t fit the theme of the game.
However, the Magiclysm mod is distributed with the game and is very extensible in JSON to support other systems of magic, such as Mind Over Matter. This infrastructure is also used with EOC's and activated mutations in the base game. See [MAGIC.md](MAGIC.md) for more info.
However, the Magiclysm mod is distributed with the game and is very extensible in JSON to support other systems of magic, such as Mind Over Matter. This infrastructure is also used with EOC's and activated mutations in the base game. See [MAGIC.md](JSON/MAGIC.md) for more info.

#### Remove skill rust: no

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions doc/BASECAMP.md → doc/JSON/BASECAMP.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ The `"faction_base_camp_8"` upgrade mission can be performed after `"faction_bas

## mapgen update JSON

These are standard mapgen update JSON; see [the MAPGEN docs](doc/MAPGEN.md) for
These are standard mapgen update JSON; see [the MAPGEN docs](./MAPGEN.md) for
more details. Each one should change a localized portion of the camp map and
should, as much as possible, be independent of any other pieces of
mapgen update for the basecamp upgrade path. Obviously, some bits are going to
Expand Down Expand Up @@ -139,7 +139,7 @@ In this situation, you can define multiple upgrade options with a single recipe
and a single mapgen update. This works as follows.

Put one or more mapgen parameters in the mapgen update. Mapgen parameters are
documented in [the MAPGEN docs](doc/MAPGEN.md). Each parameter should be at
documented in [the MAPGEN docs](./MAPGEN.md). Each parameter should be at
OMT scope and have a set of options defined e.g. via `"distribution"`, but the
weights of the different options do not matter; the player will choose between
them rather than a random choice.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions doc/HELP_MENU.md → doc/JSON/HELP_MENU.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ Each category is made up of a json object which for mods can be placed anywhere
| ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `"type"` | (required) must be `"help"` |
| `"order"` | (required) integer, where this category should appear in the list relative to others from the same source, with 0 being first. Must be unique per source (Every mod can start from 0). Each mods categories are appended to the end of the list per their load order. |
| `"name"` | (required) string, name of the category, can use [color tags](COLOR.md#color-tags) |
| `"messages"` | (required) array of strings, each string respresents a new line seperated paragraph containing information for this category, can use [color tags](COLOR.md#color-tags) and [keybind tags](#keybind-tags). Seperated mainly for ease of editing the json as `\n` lets you add newlines within strings |
| `"name"` | (required) string, name of the category, can use [color tags](/doc/user-guides/COLOR.md#color-tags) |
| `"messages"` | (required) array of strings, each string respresents a new line seperated paragraph containing information for this category, can use [color tags](/doc/user-guides/COLOR.md#color-tags) and [keybind tags](#keybind-tags). Seperated mainly for ease of editing the json as `\n` lets you add newlines within strings |

### Keybind tags

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions doc/JSON_INFO.md → doc/JSON/JSON_INFO.md
Original file line number Diff line number Diff line change
Expand Up @@ -3468,7 +3468,7 @@ Weakpoints only match if they share the same id, so it's important to define the
"bash": 0,
"cut": 0
},
"to_hit" { // (Optional) To hit bonus values, omit if item isn't suited to be used as a melee weapon, see [GAME_BALANCE.md](GAME_BALANCE.md#to-hit-value) for individual value breakdowns.
"to_hit" { // (Optional) To hit bonus values, omit if item isn't suited to be used as a melee weapon, see [GAME_BALANCE.md](/doc/design-balance-lore/GAME_BALANCE.md#to-hit-value) for individual value breakdowns.
"grip": "solid", // the item's grip value
"length": "long", // the item's length value
"surface": "point", // the item's striking surface value
Expand Down Expand Up @@ -3530,7 +3530,7 @@ For additional clarity, an item's `to_hit` bonus can be encoded as string of 4 f
"balance": "neutral" // one of "clumsy", "uneven", "neutral", or "good"
}
```
See [GAME_BALANCE.md](GAME_BALANCE.md#to-hit-value)
See [GAME_BALANCE.md](/doc/design-balance-lore/GAME_BALANCE.md#to-hit-value)

### Ammo

Expand Down Expand Up @@ -3732,7 +3732,7 @@ Overrides the armor breathability, which is driven by armor material. Can be `IM

##### Layers

What layer this piece of armor occupy. Can be `PERSONAL`, `SKINTIGHT`, `NORMAL`, `WAIST`, `OUTER`, `BELTED`, `AURA`, see [ARMOR_BALANCE_AND_DESIGN.md#layers](ARMOR_BALANCE_AND_DESIGN.md#layers) for details
What layer this piece of armor occupy. Can be `PERSONAL`, `SKINTIGHT`, `NORMAL`, `WAIST`, `OUTER`, `BELTED`, `AURA`, see [ARMOR_BALANCE_AND_DESIGN.md#layers](/doc/design-balance-lore/ARMOR_BALANCE_AND_DESIGN.md#layers) for details

##### rigid_layer_only

Expand Down Expand Up @@ -4150,7 +4150,7 @@ Any Item can be a container. To add the ability to contain things to an item, yo
"cut": 12
},
"flags" : ["CHOP"], // Indicates special effects
"to_hit" { // (Optional) To hit bonus values, omit if item isn't suited to be used as a melee weapon, see [GAME_BALANCE.md](GAME_BALANCE.md#to-hit-value) for individual value breakdowns.
"to_hit" { // (Optional) To hit bonus values, omit if item isn't suited to be used as a melee weapon, see [GAME_BALANCE.md](/doc/design-balance-lore/GAME_BALANCE.md#to-hit-value) for individual value breakdowns.
"grip": "solid",
"length": "long",
"surface": "point",
Expand Down Expand Up @@ -4326,7 +4326,7 @@ Alternately, every item (book, tool, armor, even food) can be used as a gunmod i
"bash": 12,
"cut": 0
},
"to_hit" { // (Optional) To hit bonus values, omit if item isn't suited to be used as a melee weapon, see [GAME_BALANCE.md](GAME_BALANCE.md#to-hit-value) for individual value breakdowns.
"to_hit" { // (Optional) To hit bonus values, omit if item isn't suited to be used as a melee weapon, see [GAME_BALANCE.md](/doc/design-balance-lore/GAME_BALANCE.md#to-hit-value) for individual value breakdowns.
"grip": "solid",
"length": "long",
"surface": "point",
Expand Down
2 changes: 1 addition & 1 deletion doc/JSON_INHERITANCE.md → doc/JSON/JSON_INHERITANCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,5 +191,5 @@ Contributors are encouraged to not overuse `copy-from`, as it can decrease the h
In general, there are two situations where `copy-from` should be used in the core game:

* Two things are nearly identical variants of each other.
* If they're pretty much identical (e.g. everything except for their descriptions can be kept, there are only decorative differences, there are no mechanical differences, or in the case of [guns](GUN_NAMING_AND_INCLUSION.md#difference-threshold) minor value differences), they can be handled as [variants](JSON_INFO.md#snippets) (scroll down to the variant example).
* If they're pretty much identical (e.g. everything except for their descriptions can be kept, there are only decorative differences, there are no mechanical differences, or in the case of [guns](/doc/GUN_NAMING_AND_INCLUSION.md#difference-threshold) minor value differences), they can be handled as [variants](JSON_INFO.md#snippets) (scroll down to the variant example).
* A group of entities always (not almost always, always) shares some set of properties, then one or two levels of abstracts can set up a very shallow and narrow hierarchy.
1 change: 1 addition & 0 deletions doc/JSON/JSON_LOADING_ORDER.md
Loading

0 comments on commit 69a4eb7

Please sign in to comment.