| 1 |
On the server every single KDE repo is downloaded. |
| 2 |
|
| 3 |
SEE BELOW FOR THE REAL EXAMPLE (EASY, FULL EXAMPLE) |
| 4 |
|
| 5 |
default Doxygen configuration: |
| 6 |
DOTFILE_DIRS = docs/dot |
| 7 |
|
| 8 |
Frameworks |
| 9 |
|
| 10 |
need to consider platform/type stuff for frameworks as well as tier (platform is generally applicable, but type?) |
| 11 |
|
| 12 |
KArchive/config.kapidox: |
| 13 |
public_source_dirs: |
| 14 |
- src |
| 15 |
group: Frameworks |
| 16 |
subgroup: tier 1 # actually omit; use tier from metainfo.yaml as special case for frameworks |
| 17 |
|
| 18 |
frameworks-docs: |
| 19 |
group: Frameworks |
| 20 |
group_info: |
| 21 |
maintainer: dfaure |
| 22 |
description: "whatever short description we have about Frameworks" |
| 23 |
allowed_subgroups: |
| 24 |
- Tier 1 |
| 25 |
- Tier 2 |
| 26 |
- Tier 3 |
| 27 |
- Tier 4 |
| 28 |
- Porting Aids |
| 29 |
|
| 30 |
Easy |
| 31 |
|
| 32 |
config.kapidox: |
| 33 |
# info is taken from metainfo.yaml, CMakeLists.txt etc. if available, but can be overridden here |
| 34 |
public_source_dirs: |
| 35 |
- src/lib |
| 36 |
private_source_dirs: |
| 37 |
- src/app |
| 38 |
|
| 39 |
Full example |
| 40 |
config.kapidox: |
| 41 |
# info is taken from metainfo.yaml, CMakeLists.txt etc if available, but can be overridden here |
| 42 |
name: <user-visible name, including caps> # eg: KArchive |
| 43 |
maintainer: <identity username> # or list of usernames |
| 44 |
description: <one-line description> |
| 45 |
group: <name> # optional; eg: frameworks |
| 46 |
subgroup: <subgroup> # optional; eg: tier 1 |
| 47 |
public_source_dirs: |
| 48 |
- src/lib |
| 49 |
examples_code_dirs: # Doxygen EXAMPLES key; default docs/examples |
| 50 |
- doc/examples |
| 51 |
extra_doc_dirs: # default ./docs |
| 52 |
- doc |
| 53 |
private_source_dirs: |
| 54 |
- src/app |
| 55 |
main_page: # defaults to README.md |
| 56 |
doxygen_overrides: |
| 57 |
| # some text in doxygen config format (using yaml's block text feature) |
| 58 |
| FOO = bar |
| 59 |
group_info: # only in one member of the group; doxygen will be run in this repo for the group top-level pages |
| 60 |
group: <name> # defaults to top-level group info |
| 61 |
maintainer: <identity username> # maintainer of group as a whole (eg: dfaure for frameworks) |
| 62 |
description: <one-line description> |
| 63 |
allowed_subgroups: |
| 64 |
- tier 1 |
| 65 |
- tier 2 |
| 66 |
subprojects: |
| 67 |
name: |
| 68 |
main_page: src/some_project/README.md |
| 69 |
public_source_dirs: |
| 70 |
- src/some_project |
| 71 |
# any keys valid at top level (except group_info); anything not specified will default to top-level value |
| 72 |
other_name: |
| 73 |
# as above |
| 74 |
|
| 75 |
if config.kapidox is missing, repo is ignored |
| 76 |
|
| 77 |
a "project" is generated for the top-level data in config.kapidox and for each subproject: |
| 78 |
in "public" mode (api.kde.org): |
| 79 |
private_source_dirs is ignored |
| 80 |
if a project does not have public_source_dirs, it is ignored (but group_info is still used if present) |
| 81 |
in "private" mode: |
| 82 |
public_source_dirs is ignored |
| 83 |
private_source_dirs is added to Doxygen INPUT |
| 84 |
extra_doc_dirs is added to Doxygen INPUT |
| 85 |
|
| 86 |
|
| 87 |
|
| 88 |
Reflection |
| 89 |
Each git repo /product contains a yaml file: |
| 90 |
|
| 91 |
metainfo.yaml / projectinfo.yaml: |
| 92 |
maintainer: <identity username> |
| 93 |
description: <one-line description> |
| 94 |
release: <true|false> |
| 95 |
deprecated: <true|false> |
| 96 |
group: <name> # eg: frameworks/tier1 |
| 97 |
subprojects: |
| 98 |
- name: |
| 99 |
all the keys you can do outside to override |
| 100 |
documentation: |
| 101 |
group_documentation_dirs: |
| 102 |
- docs |
| 103 |
public_libraries: # runs separate doxygen instances on these dirs; group will default to this repo name |
| 104 |
- name: <name of the lib> #optional, default to framework |
| 105 |
description: #optional, default to the one above |
| 106 |
lib doc: <> |
| 107 |
lib example: <> |
| 108 |
dirs: #where to run |
| 109 |
- directory1 |
| 110 |
- directory2 |
| 111 |
- name: <name of the other lib> #optional, default to framework |
| 112 |
dirs: |
| 113 |
- directory1 |
| 114 |
- directory2 |
| 115 |
public_library_dirs: # these will be documented on api.kde.org -- empty by default |
| 116 |
- src |
| 117 |
- libs/my_public_lib |
| 118 |
private_code_dirs: # these will be documented only when running in internal mode -- full repo by default |
| 119 |
- src |
| 120 |
|
| 121 |
|
| 122 |
|
| 123 |
|
| 124 |
layouts: |
| 125 |
frameworks: |
| 126 |
each lib own repo: |
| 127 |
src/ |
| 128 |
docs/ |
| 129 |
examples/ |
| 130 |
README.md |
| 131 |
metainfo.yml |
| 132 |
separate doc repo with group docs |
| 133 |
calligra(?): |
| 134 |
core repo including group docs + public libraries: |
| 135 |
doc_for_scripting/ (md files?) |
| 136 |
src/ |
| 137 |
examples/ |
| 138 |
app repos |
| 139 |
amarok: |
| 140 |
one repo with: |
| 141 |
public lib for plugins to link against |
| 142 |
user manual |
| 143 |
extra docs for how to write plugins |
| 144 |
application code (+ private libraries?) |
| 145 |
Kate: |
| 146 |
need some way to document writing syntax files |
| 147 |
KDiagram |
| 148 |
|
| 149 |
one repo with 2 independent libs, KChart & KGantt |
| 150 |
|
| 151 |
src/KChart |
| 152 |
|
| 153 |
src/KGantt |
| 154 |
|
| 155 |
|
| 156 |
|
| 157 |
kapidox reads all repositories to find the metainfo.yaml files to organize the documentation pages. |
| 158 |
|
| 159 |
Needs: |
| 160 |
The doc of |
| 161 |
|
| 162 |
each product |
| 163 |
|
| 164 |
each group |
| 165 |
|
| 166 |
all kde products |
| 167 |
|
| 168 |
....are build with the same script |
| 169 |
|
| 170 |
|
| 171 |
|
| 172 |
Current script info sources: |
| 173 |
the repo/dir name is used |
| 174 |
parses project() command from CMakeLists.txt to figure out name of project ("fancyname" - the one displayed to the user) |
| 175 |
|