commit 98823d0195bfdb8378598f4d5bf89e26600b18bd
parent 51d6db529796db5216e0977d31eb09d4a23643bb
Author: Andrew Laack <andrew@laack.co>
Date: Wed, 13 May 2026 16:46:16 -0500
Took notes on YaCy, deleted mkdocs artifacts.
Diffstat:
8 files changed, 26 insertions(+), 284 deletions(-)
diff --git a/custom_theme/favicon.ico b/custom_theme/favicon.ico
Binary files differ.
diff --git a/custom_theme/main.html b/custom_theme/main.html
@@ -1,68 +0,0 @@
-
-<!DOCTYPE html>
-<html>
- <head>
-
- <script>
- var base_url = "{{ base_url }}";
- </script>
- <script src="{{ base_url }}/search/main.js"></script>
- <title>{% if page.title %}{{ page.title }} - {% endif %}{{ config.site_name }}</title>
- {%- for path in config.extra_css %}
- <link href="{{ path | url }}" rel="stylesheet">
- {%- endfor %}
-
- </head>
- <body>
-
- <!-- Fixed navigation bar -->
- <div id="mkdocs-nav">
- {% include "nav.html" %} <!-- Include navigation -->
- </div>
-
- <main>
- <div class="container">
- {% include "sidebar.html" %} <!-- Include sidebar navigation -->
-
- <main class="content">
- {{ page.content }}
- </main>
- </div>
- </main>
-
- {%- for script in config.extra_javascript %}
- {{ script | script_tag }}
- {%- endfor %}
-
-
-<footer id="site-footer">
- <a href="https://git.laack.co/notes/log.html" target="_blank">Repo</a>
-</footer>
-
-<style>
- #site-footer {
- position: fixed;
- bottom: 0;
- left: 0;
- right: 0;
- width: 100%;
- background: white;
- text-align: right;
- height: 18px;
- font-size: 12px;
- }
-
- #site-footer a {
- text-decoration: none;
- font-weight: bold;
- padding-right: 10px;
- }
-
- #site-footer a:hover {
- text-decoration: underline;
- }
-</style>
-
-
- </body>
-</html>
diff --git a/custom_theme/nav.html b/custom_theme/nav.html
@@ -1,32 +0,0 @@
-<input type="text" id="mkdocs-search-query" placeholder="Search..." />
-<div id="mkdocs-search-results"></div>
-
-
-
-<script>
-document.addEventListener("DOMContentLoaded", function() {
- const searchInput = document.getElementById("mkdocs-search-query");
- const searchResults = document.getElementById("mkdocs-search-results");
-
- // Show search results when input is focused
- searchInput.addEventListener("focus", function() {
- searchResults.style.display = "block";
- });
-
- // Hide search results when clicking outside, but not when clicking a link inside
- document.addEventListener("click", function(event) {
- if (!searchInput.contains(event.target) && !searchResults.contains(event.target)) {
- searchResults.style.display = "none";
- }
- });
-
- // Ensure clicking a search result takes the user to the page before hiding
- searchResults.addEventListener("click", function(event) {
- if (event.target.tagName === "A") {
- setTimeout(() => {
- searchResults.style.display = "none"; // Hide after navigation
- }, 100); // Small delay to allow navigation to happen
- }
- });
-});
-</script>
diff --git a/custom_theme/sidebar.html b/custom_theme/sidebar.html
@@ -1,9 +0,0 @@
-<nav class="sidebar">
- <ul>
- {% for nav_item in nav %}
- <li>
- <a href="{{ nav_item.url | url }}">{{ nav_item.title }}</a>
- </li>
- {% endfor %}
- </ul>
-</nav>
diff --git a/custom_theme/stylesheets/custom.css b/custom_theme/stylesheets/custom.css
@@ -1,144 +0,0 @@
-#mkdocs-nav {
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- left: 100px;
- height: 75px; /* Adjust height as needed */
- background: white;
- z-index: 1000; /* Ensure it stays above other elements */
- display: flex;
- border: 2px solid #eeeeee;
- align-items: center;
- padding: 0 20px;
-}
-
-
- #mkdocs-search-query {
- position: fixed;
- top: 5px;
- width: 75%; /* Adjust as needed (e.g., 80% or 500px) */
- padding: 8px; /* Add padding */
- font-size: 14px; /* Set font size */
- outline: none;
- color: black;
- border: 1px solid #000;
- margin-top: 10px;
- margin-left: 20px;
- }
-
- #mkdocs-search-results {
- position: fixed;
- width: 75%; /* Adjust as needed (e.g., 80% or 500px) */
- top: 48px;
- display: none;
- background: #fff;
- max-height: 300px;
- overflow-y: auto;
- padding: 8px;
- border: 1px solid #000;
- z-index: 1000;
- margin-left: 20px;
- }
-
- #mkdocs-search-query:focus + #mkdocs-search-results {
- display: block;
- }
-
- .spacer{
- height: 50px;
- }
- .pgp-container {
- text-align: center;
- padding: 20px;
- margin-top: 20px;
- background-color: #ffffff;
- width: 100%;
- max-width: 900px;
- margin-left: auto;
- margin-right: auto;
- }
-
- .pgp-key {
- white-space: pre-wrap;
- word-wrap: break-word;
- }
- body {
- font-family:'Lucida Console', monospace;
- font-size: 18px;
- color: #111;
- background-color: white;
- width: 100%;
- margin: 0 auto;
- padding-left: 141px;
- box-sizing: border-box;
- }
- .landing {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- min-height:100vh; min-height:100dvh;
- text-align: center;
- }
- svg { width: 100%; height: auto; }
- .svg-container { width: 100%; max-width: 400px; display: inline-block; }
- .separator { letter-spacing: -9px; }
- hr { border: none; height: 2px; background-color: lightgrey; width: 100%; margin: 30px auto; }
- table { border-collapse: collapse; text-align: center; width: 100%; }
- td {
- padding: 5px 20px;
- border: 1px solid #dddddd;
- }
- .quiet, .links-container a { color: inherit; }
- .links-container { font-size: 24px; margin: 20px; }
- .links-container a { text-decoration: none; margin: 0 10px; }
- .product-photo { display: block; max-height: 640px; width: 100%; margin: 0 auto; }
- .faqtable dt { margin-bottom: 0.75em; font-style: italic; }
- .faqtable dd { margin-left: 0; margin-bottom: 2em; }
-
-
-/* Layout container */
-.container {
- display: flex;
-}
-
-/* Sidebar styles */
-.sidebar {
- width: 100px; /* Adjust as needed */
- height: 100vh; /* Full height */
- background-color: white; /* Light gray background */
- position: fixed; /* Keeps it in place */
- top: 0;
- left: 0;
- padding-top: 0px;
- overflow-y: auto; /* Scroll if needed */
- border-right: 2px solid #eeeeee;
-}
-
-/* Sidebar navigation links */
-.sidebar ul {
- list-style: none;
- padding: 0px;
-}
-
-.sidebar li {
- padding: 10px;
-}
-
-.sidebar a {
- text-decoration: none;
- color: #000000;
- padding: 10px;
-}
-
-.sidebar a:hover {
- background-color: #eee;
- color: black;
-}
-
-/* Content area to avoid overlap */
-.content {
- padding-top: 75px;
- width: 86%;
-}
diff --git a/docs/SystemsAdministration.md b/docs/SystemsAdministration.md
@@ -9,3 +9,4 @@ Links to systems administrtation resources. This includes devops related tooling
- [Coolify](Coolify.md)
- [Proxmox](Proxmox.md)
- [Portainer](Portainer.md)
+- [YaCy](YaCy.md)
diff --git a/docs/YaCy.md b/docs/YaCy.md
@@ -0,0 +1,25 @@
+# YaCy
+
+**Source:** [https://yacy.net/](https://yacy.net/)
+
+## Summary
+
+YaCy is a distributed search engine with P2P and crawling functionality, allowing for the indexing of internal, external resources, and the sharing thereof.
+
+## Elements
+
+### Crawler
+
+The crawler can crawl specified pages, branch out from pages, and parse relevant content. This is where the decentralization power comes from because each node can crawl what it wants to.
+
+### Indexer
+
+The indexer creates and inverted index for crawled pages.
+
+### Administration
+
+The administration functionality allows for the management of indexed urls, cleanup, resource limiting, and other general administration functionality.
+
+### P2P Functionality
+
+YaCy uses a distributed hash table to allow nodes to discover each other. To allow nodes to contribute to search results, a node may query other nodes for index segments which are then merged together on the local node to give the finalized search results.
diff --git a/mkdocs.yml b/mkdocs.yml
@@ -1,31 +0,0 @@
-site_name: Andrew's Docs
-repo_url: https://git.laack.co/notes/log.html
-nav:
- - Home: 'index.md'
- - Math: 'Math.md'
- - ML: 'MachineLearning.md'
- - CS: 'ComputerScience.md'
-
-markdown_extensions:
- - pymdownx.arithmatex:
- generic: true
-
-extra_javascript:
- - https://unpkg.com/mathjax@3/es5/tex-mml-chtml.js
-
-theme:
- name: null
- custom_dir: 'custom_theme/'
- favicon: favicon.ico
-
-plugins:
- - search:
- indexing: 'full'
- - mermaid2:
-
-extra_css:
- - stylesheets/custom.css
-
-extra:
- generator: false
-