diff --git a/README.md b/README.md
index 51c8b0c..b5cc1ec 100644
--- a/README.md
+++ b/README.md
@@ -15,4 +15,20 @@ To add a live project link, add `siteUrl` to any project in `projects.js`:
siteUrl: "https://seanstarkey.dev/Hallowdeep/"
```
+To link a project to a self-hosted git repository, add `gitUrl`:
+
+```js
+gitUrl: "https://git.seanstarkey.dev/Hallowdeep"
+```
+
+Projects can keep their existing `url` GitHub link, use only `gitUrl`, or include both.
+
+To link a project to SourceForge, add `sourceforgeUrl`:
+
+```js
+sourceforgeUrl: "https://sourceforge.net/projects/project-name/"
+```
+
+SourceForge projects can also omit `url` if there is no GitHub mirror.
+
Open `index.html` directly in a browser or deploy the whole directory to any static host.
diff --git a/app.js b/app.js
index bb92f8e..ee54f76 100644
--- a/app.js
+++ b/app.js
@@ -30,11 +30,14 @@ function matchesSearch(project) {
const haystack = [
project.name,
project.description,
+ project.url,
+ project.gitUrl,
+ project.sourceforgeUrl,
project.siteUrl,
project.language,
project.license,
project.tags.join(" ")
- ].join(" ").toLowerCase();
+ ].filter(Boolean).join(" ").toLowerCase();
return haystack.includes(query);
}
@@ -55,11 +58,22 @@ function actions(project) {
const liveLink = project.siteUrl
? `Launch`
: "";
+ const selfHostedLink = project.gitUrl
+ ? `git.seanstarkey.dev`
+ : "";
+ const sourceforgeLink = project.sourceforgeUrl
+ ? `SourceForge`
+ : "";
+ const githubLink = project.url
+ ? `GitHub`
+ : "";
return `
${liveLink}
- GitHub
+ ${selfHostedLink}
+ ${sourceforgeLink}
+ ${githubLink}
`;
}
diff --git a/index.html b/index.html
index b338e16..0559deb 100644
--- a/index.html
+++ b/index.html
@@ -83,6 +83,7 @@ npm run explore
+
diff --git a/projects.js b/projects.js
index f0de339..0fe861d 100644
--- a/projects.js
+++ b/projects.js
@@ -155,5 +155,19 @@ window.projects = [
created: "2012-07-31",
tags: ["utility", "parser"],
accent: "#f472b6"
+ },
+ {
+ name: "Neuros Database Manipulator",
+ description: "Java interface for managing the Neuros Audio Computer database.",
+ siteUrl: "https://neurosdbm.sourceforge.net/",
+ sourceforgeUrl: "https://sourceforge.net/projects/neurosdbm/",
+ language: "Java",
+ license: "GPL",
+ stars: 0,
+ forks: 0,
+ updated: "2005-09-13",
+ created: "2005-09-13",
+ tags: ["utility", "audio", "database"],
+ accent: "#f59e0b"
}
];