@theholocron/cli 3.51.0 → 3.51.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +12 -7
- package/dist/cli.mjs.map +1 -1
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -4977,10 +4977,12 @@ async function discoverWikiRepos(org, token, fetchFn) {
|
|
|
4977
4977
|
*
|
|
4978
4978
|
* Includes:
|
|
4979
4979
|
* - A GitHub button linking to the repo itself (always first)
|
|
4980
|
-
* -
|
|
4980
|
+
* - A single "Wiki" dropdown containing minimal links to every other
|
|
4981
|
+
* wiki-enabled repo (excluding self), keeping the navbar uncluttered
|
|
4982
|
+
* regardless of how many repos are in the org.
|
|
4981
4983
|
*
|
|
4982
|
-
* The block is replaced wholesale on each sync so removed wikis
|
|
4983
|
-
*
|
|
4984
|
+
* The block is replaced wholesale on each sync so removed/added wikis
|
|
4985
|
+
* stay in sync automatically.
|
|
4984
4986
|
*/
|
|
4985
4987
|
function buildNavbarLinks(repos, currentBasepath, repoFullName) {
|
|
4986
4988
|
const lines = [
|
|
@@ -4988,10 +4990,13 @@ function buildNavbarLinks(repos, currentBasepath, repoFullName) {
|
|
|
4988
4990
|
` - type: github`,
|
|
4989
4991
|
` value: https://github.com/${repoFullName}`
|
|
4990
4992
|
];
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4993
|
+
const others = repos.filter((r) => r.basepath !== currentBasepath);
|
|
4994
|
+
if (others.length > 0) {
|
|
4995
|
+
lines.push(` - type: dropdown`, ` text: Other Projects`, ` icon: fa-duotone fa-book`, ` links:`);
|
|
4996
|
+
for (const repo of others) {
|
|
4997
|
+
const url = repo.domain ? `https://${repo.domain}` : `https://wiki.theholocron.dev/${repo.basepath}`;
|
|
4998
|
+
lines.push(` - href: ${url}`, ` text: ${repo.displayName}`);
|
|
4999
|
+
}
|
|
4995
5000
|
}
|
|
4996
5001
|
return lines.join("\n");
|
|
4997
5002
|
}
|