-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathconfig.raku
34 lines (34 loc) · 1.74 KB
/
config.raku
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
use v6.d;
%(
:cache<doc_cache>, # location relative to collection root of cached Pod
:sources<local_raku_docs/doc>, # location of sources
#| the array of strings sent to the OS by run to obtain sources, e.g. git clone
#| assumes CWD set to the directory of collection
#:source-obtain(),
:source-obtain<git clone https://github.com/Raku/doc.git local_raku_docs/>,
#| the array of strings run to refresh the sources, e.g. git pull
#| assumes CWD set to the directory of sources
#:source-refresh(),
:source-refresh<git -C local_raku_docs/ pull>,
#| the array of strings sent to the OS by run to obtain the repo's commit-id
:source-versioning<git -C local_raku_docs/doc rev-parse --short HEAD>,
#| the array of strings sent to the OS by run to obtain version data per file
#| the string is appended by the path of the file before the run is executed
:source-per-file-versioning('git','-C','local_raku_docs/doc', 'log', '-1', '--format="%h %cs"', '--'),
# processing options independent of Mode
# by default, unless set in config file, options are False
:!without-processing, # process all files if possible
:!no-refresh, # call the refresh step after initiation
:!recompile, # if true, force a recompilation of the source files when refresh is called
:mode<Website>, # the default mode, which must exist
:ignore< 404.pod6 HomePage.pod6 >,
:extensions< rakudoc pod pod6 raku p6 pm pm6 rakumod >,
:asset-basename<asset_base>, # using _ so that it is not a valid Mode name
:asset-paths( %( # type of asset is key, then metadata for that type
image => %(
:directory<images>,
:extensions<png jpeg jpeg svg mp4 webm gif>,
),
)),
:with-only(''),
)