Configuration

Configuration parameters: [~]

  • docs_folder - a path to a folder which will contain all generated documents.

NOTE be careful, all files in the docs_folder will be replaced by documentation files. [~]

  • project_path - an entry point for the parser [~]

  • files_patterns - unix style pathname patterns for matching files which will be parsed. [~]

  • repositories - you can specify a repository list by setting to parse and generate documentation from all repositories from the list. It can be useful if you have many repositories.

For example a microservices architecture:

flowchart TD;
  A[Documentaion repo] --> B[A repo of Mecroservice 1];
  A --> C[A repo of Mecroservice 2];
  A --> D[A repo of Mecroservice 3];

[~]

  • repository_host - an http url which will be used for creating a link to a file in a repository. For example, if you want to add links to your files for each section you can pass a value like https://github.com/user_name/project_name/blob/master. It will be used for creating an url like this https://github.com/user_name/project_name/blob/master/path/to/your/file.txt. [~]

  • comment_start_string - a string which marks the start of a comments block. Example: /**

  • comment_prefix - a comment line prefix. Example: *

  • comment_end_string - a string which marks the end of a comments block. Example: */ [~]

mdbook - if true generates documentation in format of mdBook. book_name - a name of the result book. book_build_dir - a directory that contains the build result. [~]

plugins_dir - path to the plugins directory. [~]

Fundoc will read all the configuration parameters from the fundoc.json config file which should be placed into the working directory of the programm's process (generally, it's a root of a project) [~]

You can disable parsing for a part of your file or a whole file by adding this comment: fundoc-disable. If you wan't to turn fundoc on few lines below just add this comment: fundoc-enable.

In case when you don't write the enable-comment all text from disable comment until the end of the file will be ignored [~]