mirror of
https://github.com/semantica-agi/semantica.git
synced 2026-08-29 04:26:20 +00:00
Summary of changes: - Update version to 0.1.0 in pyproject.toml and __init__.py files - Add semantica/cli.py with click-based interface - Add semantica/server.py with FastAPI-based REST API - Add semantica/worker.py for background task processing - Update documentation and changelog for v0.1.0
33 lines
1.1 KiB
JavaScript
33 lines
1.1 KiB
JavaScript
document.addEventListener("DOMContentLoaded", function () {
|
|
// Target the header title
|
|
var headerTitle = document.querySelector(".md-header__title");
|
|
|
|
if (headerTitle) {
|
|
// Create the container for the version selector
|
|
var versionContainer = document.createElement("div");
|
|
versionContainer.className = "version-scroll-container";
|
|
|
|
// Define versions
|
|
var versions = [
|
|
{ name: "0.1.0", url: "#", current: true }
|
|
];
|
|
|
|
// Create the scrollable list
|
|
var versionList = document.createElement("div");
|
|
versionList.className = "version-list";
|
|
|
|
versions.forEach(function (version) {
|
|
var versionLink = document.createElement("a");
|
|
versionLink.className = "version-tag" + (version.current ? " active" : "");
|
|
versionLink.href = version.url;
|
|
versionLink.textContent = version.name;
|
|
versionList.appendChild(versionLink);
|
|
});
|
|
|
|
versionContainer.appendChild(versionList);
|
|
|
|
// Insert after the header title
|
|
headerTitle.parentNode.insertBefore(versionContainer, headerTitle.nextSibling);
|
|
}
|
|
});
|