Created
May 31, 2023 03:45
-
-
Save rdm/3a78d7f096d5ecb919f65a63d7e18945 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
readmanifest=: {{ | |
coerase([cocurrent)cocreate '' | |
0!:100 y | |
(;".)every nl 0 | |
}} | |
manifests=: <@readmanifest"0 (#~ '/manifest.ijs' +./@E.S:0 ]){."1 dirtree '~addons' | |
manifestget=: {{ ({:"1 y){::~({."1 y) i. boxopen m }} (L:1) | |
addon=: 'FOLDER' manifestget | |
description=: 'DESCRIPTION' manifestget | |
section=: {{ ({.~ i.&'/')each addon y }} | |
wikiquote=: {{ | |
NB. todo: if any special characterrs show up, quote them here with <nowiki> | |
y | |
}} L:0 | |
addonref=: {{ '{{addonref|',rplc&'/|'y,'}}' }} L:0 | |
sectbl=: {{ | |
relevant=. y #~ (boxopen x) = section y | |
addons=: addonref addon relevant | |
descs=: wikiquote description relevant | |
rows=: rplc&(3 2 #&.>LF); addons {{ LF,'|-',LF,'|',x,LF,'|',y }} each descs | |
{{)n | |
:{| class="wikitable" | |
|- | |
!Package | |
!Description | |
!Keywords | |
}},rows,LF,'|}',LF | |
}} | |
Note'Example use:' | |
'api' sectbl manifests | |
We have about two dozen official sections. | |
For a complete list: | |
>~.section manifests | |
TODO: github oriented wiki tables for unofficial sections | |
) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment