Skip to content

ThomasJanotta/docs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contao Documentation

The documentation for the Contao project will be maintained in this repository.

The details below are only necessary if you want to install the docs locally. If you just want to contribute content, read the CONTRIBUTING or these detailed instructions.

Cloning

The project installs the Hugo Learn theme as a git submodule. Thus when cloning the repository, you need to use the --recurse-submodules parameter:

git clone --recurse-submodules git@github.com:contao/docs.git

or:

git clone --recurse-submodules https://github.com/contao/docs.git

Updating the Theme

To update the theme after cloning, simply run the following command:

git submodule foreach git pull origin master

Build

The documentation is built using the Hugo site generator, thus you need to install Hugo first on your system.

Building is done using the make command. There are different commands available depending on what part of the documentation you want to build.

make build-dev
make build-manual

Builds the entire documentation into the build directory.

make live-dev
make live-manual

Spins up the development server which automatically tracks changes in the docs directory and rebuilds the front end. You can access the front end on http://localhost:1313.

make clean

Cleans the build directory.

Note

Your are not dependent on the Makefile. If make is not available in your operating system, you can still invoke the hugo commands. For example:

cd page
hugo server --cleanDestinationDir --environment manual --destination ../build/manual 

Or for the Developer Documentation:

cd page
hugo server --cleanDestinationDir --environment dev --destination ../build/dev 

License

The Contao documentation is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License license (CC BY-NC-SA 4.0). If you want to redistribute a modified or unmodified version of the documentation, you can do so under the license terms.

If you contribute to the documentation, e.g. by creating pull requests, you grant us full usage rights of any content you create or upload. You also ensure that your content does not violate any third-party rights.

We are not claiming exclusive usage rights, therefore you are free to use your contributed content (e.g. texts or images) in any other project as well.

About

Contao Documentation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 45.4%
  • HTML 30.7%
  • CSS 20.0%
  • JavaScript 2.8%
  • Makefile 1.1%