Documentation Tool
The DocuCheck
is a command line tool written in Swift
, that collects and validates documentation written in Markdown. The tool does following main tasks:
- Collects documentation from various remote sources (typically from a remote git repository).
- Copies all predefined folders containing documentation into one predefined folder.
- Validates all links pointing to another documents or to anchors in the documents.
- Patches all documents to be easily served on Wultra’s developers portal.
The tool was developed for Wultra’s internal purposes, so it’s highly specialized for what we need for our own documentation.
Prerequisites
The DocuCheck
has following requirements:
macOS
(or compatible) computerSwift 5
compiler (Xcode 10.2+)git
installed on the system
Installation
The DocuCheck
tool installation is quite simple. You need to clone this repository and build the executable:
- To clone the repository, type:
git clone https://github.com/wultra/docucheck.git cd docucheck
- To build the executable, type:
swift build -c release cp .build/release/DocuCheck ${dest}
Where
${dest}
is your destination folder, where you want to store the final executable. For the rest of the documentation we assume thatDocuCheck
command is available at currentPATH
, so it can be simply executed. - To run the executable without copy to the predefined directory, simply run:
swift run DocuCheck ${parameters}
Where
${parameters}
are parameters of the tool. For example-h
.
As you can see, DocuCheck
is using Swift Package Manager to build and execute itself, so you can simply integrate the tool into your projects, managed by the SPM. To do this, please check the official Swift Package Manager documentation for more details.
Usage
Before you start using the tool, please read following documents:
- Basic Principles page makes an deeper introduction what
DocuCheck
does and how. - Configuration File page describes configuration file, required by the tool.
- Writing Wultra’s Documentation page describes how to properly document Wultra’s projects.
- Story behind DocuCheck page describes motivations why we developed this tool.
The basic usage of the tool is quite simple:
- To collect and validate the documentation, type:
DocuCheck -c ${path_to_config}
Where
${path_to_config}
is path to JSON configuration file. - To show help embedded in the tool, type:
DocuCheck -h
- Check Usage page for more information about command line interface.
Known Bugs
For the list of known bugs, please visit Known Bugs page, which contains current list of all known issues in the tool and possible workarounds.
License
All sources are licensed using Apache 2.0 license, you can use them with no restriction. If you are using this tool, please let us know. We will be happy to share and promote your project.
Contact
If you need any assistance, do not hesitate to drop us a line at [email protected] or our official wultra.com/discord channel.