Skip to content

Adjusted SCID definition to the technically correct definition and ma… #185

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 83 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
8936c2b
refactor: Rename const to glossaryUrl and isGlossarySection
kordwarshuis May 8, 2024
cb8051c
feat: This file checks if the required libraries are installed
kordwarshuis May 21, 2024
c01df47
feat: Call isLibraryInstalled.mjs
kordwarshuis May 21, 2024
9ebe5f4
fix: Remove accidentally added JSDoc module block
kordwarshuis May 21, 2024
53000eb
docs: Update info on how to install this repo
kordwarshuis May 21, 2024
13a7496
feat: Extra libary check (sitemap-generator-cli)
kordwarshuis May 21, 2024
17e3694
docs: Update comment
kordwarshuis May 21, 2024
45bd10a
feat: Add call to isLibraryInstalled.mjs plus more console.logs
kordwarshuis May 21, 2024
f98b229
docs: Add explanation about 'sitemap-generator-cli'
kordwarshuis May 22, 2024
c8cb526
Update /logs/brokenLinks.md
actions-user Jun 3, 2024
305e280
Update /logs/brokenLinks.md
actions-user Jun 10, 2024
eadc9b3
Update /logs/brokenLinks.md
actions-user Jun 17, 2024
4cd0908
chore: fetch content from various external sources
actions-user Jun 18, 2024
4ce9196
chore: fetch content from various external sources
actions-user Jun 18, 2024
3cb5a7d
chore: fetch content from various external sources
actions-user Jun 18, 2024
00a0805
Update /logs/brokenLinks.md
actions-user Jun 24, 2024
fd71013
Update /logs/brokenLinks.md
actions-user Jul 1, 2024
c0e7bc1
Update content
kordwarshuis Jul 5, 2024
17c69e8
Update content
kordwarshuis Jul 5, 2024
07c79ec
fix: Wrong comment
kordwarshuis Jul 7, 2024
2ef5b14
docs: Rephrase
kordwarshuis Jul 7, 2024
cc58d3b
docs: Edit content
kordwarshuis Jul 7, 2024
f029f8a
docs: New file
kordwarshuis Jul 7, 2024
e10cffe
docs: Update content
kordwarshuis Jul 7, 2024
fe13031
docs: Update content
kordwarshuis Jul 7, 2024
93b7003
docs: Rewrite
kordwarshuis Jul 7, 2024
b9bae52
docs: Better comments
kordwarshuis Jul 7, 2024
778999d
docs: Update content
kordwarshuis Jul 7, 2024
8ab157e
docs: Style content
kordwarshuis Jul 7, 2024
521268a
Merge remote-tracking branch 'upstream/main'
kordwarshuis Jul 7, 2024
4ee6872
Update /logs/brokenLinks.md
actions-user Jul 8, 2024
197b3b9
Add links to Keridoc and Kerisse
kordwarshuis Jul 12, 2024
597062f
Merge remote-tracking branch 'upstream/main'
kordwarshuis Jul 12, 2024
98915b8
Disable everything not related to glossary
kordwarshuis Jul 12, 2024
7b43070
Remove link to Slack history
kordwarshuis Jul 12, 2024
a21f1ff
New icon
kordwarshuis Jul 12, 2024
7056119
Bring HomepageFeatures back
kordwarshuis Jul 12, 2024
01b5457
New icon
kordwarshuis Jul 12, 2024
186b943
Content updated
kordwarshuis Jul 12, 2024
979287e
chore: fetch content from various external sources
actions-user Jul 12, 2024
63dffae
Fix link to KERISSE
kordwarshuis Jul 12, 2024
02d5229
Merge remote-tracking branch 'upstream/main'
kordwarshuis Jul 12, 2024
e131536
Update /logs/brokenLinks.md
actions-user Jul 15, 2024
4390a55
Make const repoName
kordwarshuis Jul 15, 2024
fa89a71
Rename search-index-typesense to_search-index-typesense before removal
kordwarshuis Jul 15, 2024
747adee
Rename search-index-typesense to _search-index-typesense
kordwarshuis Jul 15, 2024
2e336f9
Add link to homepage named “home” and a link to the glossary
kordwarshuis Jul 15, 2024
6563934
chore: fetch content from various external sources
actions-user Jul 15, 2024
d58b98a
Add one more link to the glossary
kordwarshuis Jul 15, 2024
c40ee40
Type
kordwarshuis Jul 15, 2024
5334d90
Typo
kordwarshuis Jul 15, 2024
821b7c8
Merge remote-tracking branch 'upstream/main'
kordwarshuis Jul 15, 2024
3248ef3
Typo
kordwarshuis Jul 15, 2024
0aaf41d
Merge branch 'dev'
kordwarshuis Jul 15, 2024
2a90a83
Typo
kordwarshuis Jul 15, 2024
b891836
No underlining for links
kordwarshuis Jul 16, 2024
4469016
Make blocks clickable
kordwarshuis Jul 16, 2024
055d469
chore: fetch content from various external sources
actions-user Jul 16, 2024
e218bb2
Update README.md
henkvancann Jul 16, 2024
d8c075a
Add shortlinks
kordwarshuis Jul 23, 2024
53551f3
New KERI logo
kordwarshuis Jul 23, 2024
d442b08
New KERI colors
kordwarshuis Jul 23, 2024
21ccb65
Replace logo
kordwarshuis Jul 23, 2024
0871efb
New KERI logo
kordwarshuis Jul 23, 2024
a11291b
New KERI colors
kordwarshuis Jul 23, 2024
e99d07a
chore: fetch content from various external sources
actions-user Jul 23, 2024
3a0bd05
Add link to Kerific Browser Extension in footer menu
kordwarshuis Jul 24, 2024
0c502e6
Merge remote-tracking branch 'upstream/main'
kordwarshuis Jul 24, 2024
ca81153
Add brown color to palet
kordwarshuis Jul 24, 2024
bf7c219
Use onRouteDidUpdate instead of DOMContentLoaded and select images in…
kordwarshuis Jul 25, 2024
acbc4b1
Add three important links in footer menu
kordwarshuis Jul 25, 2024
25670ed
Changed README.md according to the split up in 3 repos
henkvancann Jul 26, 2024
9b33fd1
Rename to KERI Suite Documentation, KERI Suite Glossary, KERI Suite S…
kordwarshuis Jul 28, 2024
cdf069d
Update /logs/brokenLinks.md
actions-user Jul 29, 2024
ec56140
Better footer menu
kordwarshuis Jul 29, 2024
717c8d1
Merge remote-tracking branch 'upstream/main' into dev
kordwarshuis Jul 29, 2024
f3a553c
Finetuning footer menu
kordwarshuis Jul 29, 2024
b1a82fa
Update /logs/brokenLinks.md
actions-user Aug 5, 2024
d66d7ce
chore: fetch content from various external sources
actions-user Aug 6, 2024
92139b8
chore: fetch content from various external sources
actions-user Aug 6, 2024
2dd4360
New Github action that calls other actions
kordwarshuis Aug 6, 2024
c60da70
Fix: Add “workflow_call”
kordwarshuis Aug 7, 2024
d13b2e4
Adjusted SCID definition to the technically correct definition and ma…
daidoji Aug 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/deploy-to-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
## C: Triggered on Wiki changes:
# gollum

## D: Triggered by a workflow call:
workflow_call:

jobs:

##############################
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/import-external-glossaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
## C: Triggered on Wiki changes:
# gollum

## D: Triggered by a workflow call:
workflow_call:

jobs:
deploy:
name: Import external glossaries
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/import-metadata-google-sheet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

name: Import metadata from Google Sheets
on:
# A: Triggered on push to the main branch:
## A: Triggered on push to the main branch:
# push:
# branches:
# - main
Expand All @@ -13,6 +13,9 @@ on:
## C: Triggered on Wiki changes:
# gollum

## D: Triggered by a workflow call:
workflow_call:

jobs:
deploy:
name: Import metadata from Google Sheets
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/import-wiki.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
## C: Triggered on Wiki changes:
# gollum

## D: Triggered by a workflow call:
workflow_call:

jobs:

##############################
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Import all and Deploy to GitHub Pages

on:
# A: Triggered on push to the main branch:
# push:
# branches:
# - main

# B: Triggered on manual workflow dispatch:
workflow_dispatch:

## C: Triggered on Wiki changes:
# gollum
jobs:
call-action1:
runs-on: ubuntu-latest
steps:
- name: Import Wiki
uses: ./.github/workflows/import-wiki.yml

call-action2:
needs: call-action1
runs-on: ubuntu-latest
steps:
- name: Import metadata from Google Sheet
uses: ./.github/workflows/import-metadata-google-sheet.yml

call-action3:
needs: call-action2
runs-on: ubuntu-latest
steps:
- name: Import external glossaries
uses: ./.github/workflows/import-external-glossaries.yml

call-action4:
needs: call-action3
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
uses: ./.github/workflows/deploy-to-gh-pages.yml
10 changes: 5 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ yarn-debug.log*
yarn-error.log*

# logs
search-index-typesense/search-index-entries/*
search-index-typesense/logs/*
search-index-typesense/sitemaps/*
search-index-typesense/overrides/overridesID.json
search-index-typesense/singleUrlsFromWotTermsGoogleSheet/*
_search-index-typesense/search-index-entries/*
_search-index-typesense/logs/*
_search-index-typesense/sitemaps/*
_search-index-typesense/overrides/overridesID.json
_search-index-typesense/singleUrlsFromWotTermsGoogleSheet/*
.history
# media
# *.mp4
Expand Down
51 changes: 25 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,26 @@
# What
## WOT-terms
It's documentation and functionality to explore this documentation. We aim to document everything related to **KERI, ACDC and CESR** and alike (umbrella term is *KERI Suite*).
WOT is "WebofTrust". It's the home of all KERI-related open-source code. The umbrella term is *KERI Suite*. It covers KERI core, ACDC, CESR, OOBI, and all other parts.

### What is this?
In [How we did]() we document 'the making of' this site that consists of
- data; which we call WOT-terminology or **WOT-terms**
- functionality; which we call **KERISSE**
This repo manages the content and functionality of all concepts and terminology behind the KERI Suite. It offers a glossary with definitions and links to the terminology source management tools. It also feeds the dictionary tool Kerific.

## Documentation subsystems and their technologies
- **This repo handles concepts and terminology** resulting in a glossary run as a Docusaurus site (GitHub pages)
- The [KERI Suite documentation](https://github.com/WebOfTrust/keridoc/), which is also a Docusaurus site (GitHub pages)
- The [KERI Suite Search Engine](https://github.com/WebOfTrust/kerisse/), which is Typesense-based GitHub pages; custom-made Bootstrap.
- The [Kerific SSI dictionary](https://github.com/WebOfTrust/kerific): Self-Sovereign Identity dictionary *including* KERI terms (browser extension for Brave/Edge/Chrome).

## WOT-terms
Is the **data** part of this site and consists of:
- whitepapers
- code of the KERI Suite
- Glossary
- Q-and-A's
- Concepts behind the KERI Suite
- blogs
- etc

### KERISSE
Is the **functionality** part of this site and consists of:
- Typesense [Search Engine](https://weboftrust.github.io/WOT-terms/?searchModalStatus=open)
- Artificial Intelligence chatBot (in lower right corner)
- [Docusaurus static site](https://weboftrust.github.io/WOT-terms/) functionality

### Why
To let autonomic identifiers florish.
Clear criteria for term definitions around KERI are needed.

### For who
WOT-terms is pimarilly aimed at KERI Suite developers (to be)
The WOT-terms repo is primarily aimed at people trying to understand the inner workings of the KERI Suite and how the suite relates to other identifier systems in the SSI field.

### Policy

Expand All @@ -39,7 +32,7 @@ We have technical meetings twice a week on Monday and Thursdays.

The Edu Meetings held every other Thursday (First meeting was on 2022 July 28), stopped April 2023.

The meeting agenda of the Technical Meeting may be found [here](https://hackmd.io/2C8ch1meS6ad3F3g2aEewg?both). The zoom link is also at the top of the page.
The meeting agenda of the Technical Meeting may be found [here](https://hackmd.io/2C8ch1meS6ad3F3g2aEewg). The Zoom link is also at the top of that page.

## Related Meetings

Expand All @@ -53,14 +46,9 @@ There also is the [Concepts and terminology](https://wiki.trustoverip.org/pages/

## Install this project

This repo is a documentation website with a Typesense search engine and a scraper engine that collects documentation.
This repo is a GitHub pages website based on Docusaurus that manages terminology through a source management tool, which currently is the [wiki of WOT-terms](https://github.com/WebOfTrust/WOT-terms/wiki).

This website is built in Docusaurus ( https://docusaurus.io ). The Typesense search engine is integrated in Docusaurus. Also the scraper engine code is inside the Docusaurus code.

This repo has three parts:
* **Docusaurus documentation** site
* Typesense **search engine**
* Chatbot (under construction)
This website is built in Docusaurus ( https://docusaurus.io ).

### Run website

Expand All @@ -75,4 +63,15 @@ What should you do to install this project:
* Now you can run a local version of the **Docusaurus website**:
`$ npx docusaurus start`. The search engine also works now.

[How we did](https://weboftrust.github.io/WOT-terms/docs/category/how-we-did) describes the follow-up steps.
{ Kor, change link pls [How we did](https://weboftrust.github.io/WOT-terms/docs/category/how-we-did) } describes the follow-up steps.

## Origin

Mid 2024 we've split up old WOT-terms repo into:

- [kerisse](https://github.com/WebOfTrust/kerisse) : search engine (Typesense-based [github.io site](https://weboftrust.github.io/kerisse/))
- new [WOT-terms](https://github.com/WebOfTrust/WOT-terms): glossary, solely focussed on terminology, filtering, and connect to source management (Docusaurus-based [github.io site](https://weboftrust.github.io/WOT-terms/?level=2))
- [keridoc:](https://github.com/WebOfTrust/keridoc) KERI documentation site (Docusaurus-based: [github.io site](https://weboftrust.github.io/keridoc/?level=2))

Apart from this, we still have:
- [kerific](https://github.com/WebOfTrust/kerific): SSI-terminology dictionary including KERI terms (browser extension for Brave/Edge/Chrome).
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Instructions
# Information

These files can be in .json or .jsonl format. They are directly copied into the directory that holds files that are imported into Typesense.
These files can be in .json or .jsonl format. They are directly copied into the directory that holds files that are imported into Typesense.

You are free to name the files.

See handmade.json` as an example.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Information

Create an array with strings that should be ignored.

Writing `newsroom` results in every URL that contains the string `newsroom` being ignored.

```
[
"gleif.org/en/meta",
"gleif.org/en/contact",
"gleif.org/en/newsroom",
"gleif.org/en/lei-data/email-notifications-on-technical-updates"
]
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Information

In this directory you can place handcrafted sitemaps. They will be copied to the sitemaps working dir and included as a source for the scraper bots.

You are free to name the files.

See slack-keri-archive.xml` as an example: this is a one time sitemap since this archive will not change anymmore.
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ source .env


########################################
# General websites - createSitemap.mjs
# General websites
########################################

# `sitemap-generator-cli` should be installed globally via `npm install -g sitemap-generator-cli` to run the `sitemap-generator` command.
sitemap-generator https://keria.readthedocs.io --verbose -f ./search-index-typesense/sitemaps/sitemap-keria.readthedocs.io.xml

sitemap-generator https://keripy.readthedocs.io --verbose -f ./search-index-typesense/sitemaps/sitemap-keripy.readthedocs.io.xml
Expand Down
File renamed without changes.
83 changes: 83 additions & 0 deletions _search-index-typesense/isLibraryInstalled.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
/**
* @file This file checks if the required libraries are installed.
* If not, it logs an error message to the console and to a log file.
* The libraries that are checked are ImageMagick, jq, and curl.
* This script uses the child_process module to execute shell commands and the util module to promisify the exec function.
* The logger module is used to log messages to the console and to a log file.
* @author Kor Dwarshuis
* @version 1.0.0
* @since 2024-05-21
*/

import { exec } from 'child_process';
import util from 'util';
import logger from './modules/logger.mjs';

const execPromisified = util.promisify(exec);

async function isLibraryInstalled(libraryName, command = libraryName, expectedOutput = libraryName) {
console.log("Testing if " + libraryName + " is installed");
try {
const { stdout } = await execPromisified(`${command} --version`);
return stdout.includes(expectedOutput);
} catch (error) {
return false;
}
}

async function isNpmPackageInstalled(packageName) {
try {
const { stdout } = await execPromisified(`npm list -g ${packageName}`);
return !stdout.includes('empty');
} catch (error) {
return false;
}
}

const messages = {
error: ' is not installed',
success: ' is installed'
};

// Usage:
if (!await isLibraryInstalled('ImageMagick', 'convert', 'ImageMagick')) {
console.log('ImageMagick' + messages.error);
logger.setLogFile('error.log');
logger.log('ImageMagick' + messages.error);

} else {
console.log('ImageMagick' + messages.success);
logger.setLogFile('success.log');
logger.log('ImageMagick' + messages.success);
}

if (!await isLibraryInstalled('jq')) {
console.log('jq' + messages.error);
logger.setLogFile('error.log');
logger.log('jq' + messages.error);

} else {
console.log('jq' + messages.success);
logger.setLogFile('success.log');
logger.log('jq' + messages.success);
}

if (!await isLibraryInstalled('curl')) {
console.log('curl' + messages.error);
logger.setLogFile('error.log');
logger.log('curl' + messages.error);
} else {
console.log('curl' + messages.success);
logger.setLogFile('success.log');
logger.log('curl' + messages.success);
}

if (!await isNpmPackageInstalled('sitemap-generator-cli')) {
console.log('sitemap-generator-cli' + messages.error);
logger.setLogFile('error.log');
logger.log('sitemap-generator-cli' + messages.error);
} else {
console.log('sitemap-generator-cli' + messages.success);
logger.setLogFile('success.log');
logger.log('sitemap-generator-cli' + messages.success);
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading