Skip to content

Commit e17f958

Browse files
authored
docs: re-home mkdocs sources within this repo (#2149)
1 parent bab381d commit e17f958

Some content is hidden

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

64 files changed

+2934
-10
lines changed

.github/workflows/verify-pr.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
- "*.md"
88
- "docs/**"
99
- "examples/**"
10+
- "docker-compose*.yml"
11+
- "mkdocs.yml"
1012

1113
jobs:
1214
build:

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Unless you're on a home/private LAN, you should [enable TLS access](https://docs
8686

8787
Everything the container manages is located under the **container's** `/data` path, as shown here:
8888

89-
![](docs/level-vs-world.drawio.png)
89+
![](docs/img/level-vs-world.drawio.png)
9090

9191
> NOTE: The container path `/data` is pre-declared as a volume, so if you do nothing then it will be allocated as an anonymous volume. As such, it is subject to removal when the container is removed.
9292
@@ -601,10 +601,10 @@ The desired modpack project is specified with the `MODRINTH_PROJECT` environment
601601
602602
- The project "slug", which is located in the URL shown here:
603603
604-
![](docs/modrinth-project-slug.drawio.png)
604+
![](docs/img/modrinth-project-slug.drawio.png)
605605
- The project ID, which is located in the bottom of the left panel, shown here
606606
607-
![](docs/modrinth-project-id.drawio.png)
607+
![](docs/img/modrinth-project-id.drawio.png)
608608
- The project page URL, such as <https://modrinth.com/modpack/cobblemon-fabric>. As described below, this can further be the page URL of a modpack's version page.
609609
610610
The automatic modpack version resolving can be narrowed in a few ways:
@@ -617,7 +617,7 @@ The selected version can also be narrowed to a particular mod loader by setting
617617
618618
Instead of auto resolving, a specific version of modpack file can be specified by passing the version's page URL to `MODRINTH_PROJECT`, such as <https://modrinth.com/modpack/cobblemon-fabric/version/1.3.2> or by setting `MODRINTH_VERSION` to the version ID or number located in the Metadata section, as shown here
619619
620-
![](docs/modrinth-version-id.drawio.png)
620+
![](docs/img/modrinth-version-id.drawio.png)
621621
622622
## Running a server with a Feed the Beast modpack
623623
@@ -631,7 +631,7 @@ Instead of auto resolving, a specific version of modpack file can be specified b
631631
https://www.feed-the-beast.com/modpacks/23-ftb-infinity-evolved-17
632632
^^
633633
```
634-
- `FTB_MODPACK_VERSION_ID`: optional, the numerical ID of the version to install. If not specified, the latest version will be installed. The "Version ID" can be obtained by hovering over a server file entry and grabbing [this ID in the URL](docs/ftba-version-id-popup.png).
634+
- `FTB_MODPACK_VERSION_ID`: optional, the numerical ID of the version to install. If not specified, the latest version will be installed. The "Version ID" can be obtained by hovering over a server file entry and grabbing [this ID in the URL](docs/img/ftba-version-id-popup.png).
635635
636636
### Upgrading
637637
@@ -698,7 +698,7 @@ Pass a page URL to the modpack or a specific file with `CF_PAGE_URL` such as the
698698
699699
Instead of a URL, the modpack slug can be provided as `CF_SLUG`. The slug is the short identifier visible in the URL after "/modpacks/", such as
700700
701-
![cf-slug](docs/cf-slug.png)
701+
![cf-slug](docs/img/cf-slug.png)
702702
703703
For example:
704704
```
@@ -717,7 +717,7 @@ The latest file will be located and used by default, but if a specific version i
717717
718718
The following shows where to get the URL to the specific file and also shows where the file ID is located:
719719
720-
![cf-file-id](docs/cf-file-id.png)
720+
![cf-file-id](docs/img/cf-file-id.png)
721721
722722
The following examples all refer to version 1.0.7 of ATM8:
723723
@@ -740,7 +740,7 @@ Global and per modpack exclusions can be declared in a JSON file and referenced
740740
Alternatively, they can be excluded by passing a comma or space delimited list of **project** slugs or IDs via `CF_EXCLUDE_MODS`. Similarly, there are some mods that are incorrectly tagged as client only. For those, pass the **project** slugs or IDs via `CF_FORCE_INCLUDE_MODS`. These lists will be combined with the content of the exclude/include file, if given.
741741
742742
A mod's project ID can be obtained from the right hand side of the project page:
743-
![cf-project-id](docs/cf-project-id.png)
743+
![cf-project-id](docs/img/cf-project-id.png)
744744
745745
If needing to iterate on the options above, set `CF_FORCE_SYNCHRONIZE` to "true" to ensure the exclude/includes are re-evaluated.
746746
@@ -1029,7 +1029,7 @@ docker run ... -v $HOME/worlds:/worlds:ro -e WORLD=/worlds/basic
10291029

10301030
The following diagram shows how this option can be used in a compose deployment with a relative directory:
10311031

1032-
![](docs/world-copy-compose-project.drawio.png)
1032+
![](docs/img/world-copy-compose-project.drawio.png)
10331033

10341034
### Overwrite world on start
10351035
The world will only be downloaded or copied if it doesn't exist already. Set `FORCE_WORLD_COPY=TRUE` to force overwrite the world on every server start.
@@ -1152,7 +1152,7 @@ The section symbol (§) and other unicode characters are automatically converted
11521152

11531153
renders
11541154

1155-
![](docs/motd-example.png)
1155+
![](docs/img/motd-example.png)
11561156

11571157
To produce a multi-line MOTD, you will need to double escape the newline such as
11581158

docker-compose-mkdocs.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# This composition can be used to serve up the rendered mkdocs for local authoring.
2+
#
3+
# docker compose -f docker-compose-mkdocs.yml -p mkdocs up
4+
#
5+
# and then access http://localhost:8000
6+
7+
version: "3.8"
8+
9+
services:
10+
mkdocs:
11+
build:
12+
context: .
13+
dockerfile: docs/Dockerfile
14+
volumes:
15+
- ./mkdocs.yml:/mkdocs/mkdocs.yml
16+
- ./docs:/mkdocs/docs
17+
command:
18+
- serve
19+
- --dev-addr=0.0.0.0:8000
20+
ports:
21+
- "8000:8000"

docs/Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM python:3.8
2+
3+
RUN pip install --upgrade pip
4+
5+
WORKDIR /mkdocs
6+
7+
RUN --mount=target=/build/requirements.txt,source=docs/requirements.txt \
8+
pip install -r /build/requirements.txt
9+
10+
ENTRYPOINT ["mkdocs"]
-68.5 KB
Binary file not shown.

docs/cf-project-id.png

-5.44 KB
Binary file not shown.

docs/cf-slug.png

-3.23 KB
Binary file not shown.

0 commit comments

Comments
 (0)