Package Documentation (GoDoc)¶
Godoc parses Go source code - including comments - and produces documentation as HTML or plain text. The end result is documentation tightly coupled with the code it documents:
- cmd/photoprism - main application
- internal/photoprism - main library package
- internal/server - server initialization and routing
- internal/api - server api
- internal/commands - command line interface
- internal/form - input validation (based on gin)
- internal/entity - models (based on GORM)
Pull Requests should use the
master branch by default.
Though less convenient to edit than a Wiki, our
photoprism-docs repository is meant to receive pull requests to always improve the documentation, add new pages, etc. Having direct access to the source files in a revision control system is a big plus to ensure the quality of our end user documentation.
mkdocs.yml # The configuration file. docs/ index.md # The documentation homepage. ... # Other markdown pages, images and other files.
Building with Mkdocs¶
To build the HTML, you need to install Mkdocs.
It is best installed using pip, Python's module installer. On a Mac you can run:
brew install python pip3 install mkdocs pip3 install mkdocs-material
You can then build the HTML documentation from the root folder of this repository with:
or start a server that listens on http://127.0.0.1:8000
Editing existing pages¶
To edit an existing page, locate its .md source file and open it in your favourite text editor. You can then commit the changes, push them to your fork and make a pull request.