|
| 1 | +[codelinks] |
| 2 | +# Configuration for source tracing |
| 3 | +set_local_url = true # Set to true to enable local code html and URL generation |
| 4 | +local_url_field = "local-url" # Need's field name for local URL |
| 5 | +set_remote_url = true # Set to true to enable remote url to be generated |
| 6 | +remote_url_field = "remote-url" # Need's field name for remote URL |
| 7 | +outdir = "codelinks_output" # Output directory for generated files |
| 8 | + |
| 9 | +# Configuration for source tracing project "dcdc" |
| 10 | +[codelinks.projects.dcdc] |
| 11 | +remote_url_pattern = "https://github.com/useblocks/sphinx-codelinks/blob/{commit}/{path}#L{line}" # URL pattern for remote source code |
| 12 | + |
| 13 | +[codelinks.projects.dcdc.source_discover] |
| 14 | +src_dir = "../dcdc" # Relative path from this TOML config to the source directory |
| 15 | +comment_type = "cpp" |
| 16 | +exclude = [] |
| 17 | +include = ["**/*.c", "**/*.h"] |
| 18 | +gitignore = false |
| 19 | + |
| 20 | +[codelinks.projects.dcdc.analyse] |
| 21 | +get_need_id_refs = false |
| 22 | +get_oneline_needs = true |
| 23 | +get_rst = false |
| 24 | + |
| 25 | +[codelinks.projects.dcdc.analyse.oneline_comment_style] |
| 26 | +# Configuration for oneline comment style |
| 27 | +start_sequence = "[[" # Start sequence for oneline comments |
| 28 | +end_sequence = "]]" # End sequence for the online comments; default is newline character |
| 29 | +field_split_char = "," # Character to split fields in the comment |
| 30 | +# Fields that are defined in the oneline comment style |
| 31 | +needs_fields = [ |
| 32 | + { "name" = "id", "type" = "str" }, |
| 33 | + { "name" = "title", "type" = "str" }, |
| 34 | + { "name" = "type", "type" = "str", "default" = "impl" }, |
| 35 | + { "name" = "links", "type" = "list[str]", "default" = [ |
| 36 | + ] }, |
| 37 | +] |
| 38 | + |
| 39 | +[codelinks.projects.src] |
| 40 | +remote_url_pattern = "https://github.com/useblocks/sphinx-codelinks/blob/{commit}/{path}#L{line}" |
| 41 | + |
| 42 | +[codelinks.projects.src.source_discover] |
| 43 | +src_dir = "../doc_test/minimum_config" |
0 commit comments