Initial setup for Docusaurus
Our ARK Modding Documentation uses a tool called Docusaurus which allows us to write our documentation in special plain text files called markdown files, which is low maintainance and convenient.
Additionally, Docusaurus allows to instantly preview changes locally to see how they will look on the online site before you submit them to the ARK Modding team.
Installing NodeJS
Docusaurus requires the NodeJS runtime, so you will need to install it on your machine. You can download it from the official NodeJS website and simply follow the setup instructions.
Preparing Docusaurus
When running Docusaurus for the first time you need to initialize it, which requires a few simple copy-paste console commands.
-
Open a terminal / console window on your machine
tipIn Windows 11 and most modern linux distributions you can simply right-click the file explorer in the folder where you cloned the repository and select "Show More Options", then "Open in Terminal". You can then skip step 2.
tipOn older Windows systems and some linux distributions you can usually do the same by shift-right-clicking in the folder.
-
Change your directory to the cloned repository's location on your machine using the command
cd full/path/to/your/cloned/repository
, e.g.cd C:/repos/arkmodding
orcd /home/myuser/repos/arkmodding
. -
Run the following commands one after the other, confirming each with the "Enter" key:
corepack enable
yarn init -2
yarn set version stable
yarn install
infoThis process can take a few seconds, but usually finishes quickly.
Running Docusaurus
After this initial setup you can run Docusaurus with the command yarn start
in the same terminal window. This will start a local webserver on your machine and open a browser window with the documentation site.