This is the source of the official Mage-OS DevDocs Website.
If you want to curate, edit, add or change content on the documentation, please go to the Mage-OS DevdDocs Repository.
The website is build with Laravel. A database is not required. You can run the website locally with the following commands:
git clone git@github.com:mage-os/devdocs-website.git devdocs-website
cd devdocs-website
bash bin/setup.sh
Next, you need to compile the assets and start the server:
npm run dev
php artisan serve
Now add the documentation itself;
bash bin/checkout_latest_docs.sh
There is no container based setup. There are plenty of different setups out there, so we leave it up to you to choose your favorite one. If you want a docker-based setup, Laravel's Sail might be an option for you.
This project relies on Torchlight for syntax highlighting. You will need to create an account
at torchlight.dev and generate a free personal token for use in this project. If you used
the bin/setup.sh
script to setup the project, the token is in your .env file. If not, add the following line to your
.env file manually:
TORCHLIGHT_TOKEN=your-torchlight-token
This GitHub article provides instructions on how to pull the latest changes from this repository into your fork.
If you pull down the upstream changes from this repository into your local repository, you'll want to update your
Composer and NPM dependencies, as well as update your documentation branches. For convenience, you may run
the bin/update.sh
script to update these things:
./bin/update.sh