tractatus/public/docs.html
TheFlow ea53ca1a5f feat: change license from MIT to Apache License 2.0
- Created Apache License 2.0 LICENSE file
- Removed all MIT License references from HTML pages
- Updated all footers with Apache 2.0 license links
- Updated about.html with comprehensive license section explaining why Apache 2.0
- Added patent protection, contributor clarity, and community standard benefits
- Updated package.json license field to "Apache-2.0"
- Updated README.md with Apache 2.0 license information
- Deployed LICENSE file to production server (accessible at /LICENSE)

Why Apache 2.0 over MIT:
- Patent protection for users
- Clear contribution terms
- Permissive use (commercial, modification, distribution)
- Community standard in AI/ML projects (TensorFlow, PyTorch, Apache Spark)

All pages cache-busted and deployed with v1759833751

🤖 Generated with Claude Code (https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-07 23:43:20 +13:00

337 lines
8 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Framework Documentation | Tractatus AI Safety</title>
<link rel="stylesheet" href="/css/tailwind.css?v=1759833751">
<style>
html { scroll-behavior: smooth; }
/* Card-based layout */
.doc-header {
text-align: center;
padding: 2rem 0;
}
.card-grid-container {
width: 100%;
overflow: visible;
min-height: auto;
}
.category-section {
margin-bottom: 2rem;
}
.card-grid {
display: grid;
gap: 1rem;
width: 100%;
}
@media (min-width: 768px) {
.card-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (min-width: 1024px) {
.card-grid {
grid-template-columns: repeat(3, 1fr);
}
}
.doc-card {
min-height: 180px;
display: flex;
flex-direction: column;
transition: all 0.2s ease;
cursor: pointer;
user-select: none;
}
.doc-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.doc-card:active {
transform: translateY(0);
}
.line-clamp-3 {
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
/* Prose styles for modal content */
.prose {
max-width: none;
line-height: 1.75;
color: #374151;
}
.prose h1 {
font-size: 1.875rem;
font-weight: 700;
color: #111827;
margin-bottom: 1.5rem;
margin-top: 2rem;
line-height: 1.2;
border-bottom: 2px solid #e5e7eb;
padding-bottom: 0.5rem;
}
.prose h2 {
font-size: 1.5rem;
font-weight: 600;
color: #111827;
margin-bottom: 1rem;
margin-top: 2rem;
line-height: 1.3;
border-bottom: 1px solid #e5e7eb;
padding-bottom: 0.375rem;
}
.prose h3 {
font-size: 1.25rem;
font-weight: 600;
color: #1f2937;
margin-bottom: 0.75rem;
margin-top: 1.5rem;
line-height: 1.4;
}
.prose h4 {
font-size: 1.125rem;
font-weight: 600;
color: #374151;
margin-bottom: 0.5rem;
margin-top: 1.25rem;
line-height: 1.5;
}
.prose p {
color: #4b5563;
margin-bottom: 1.25rem;
line-height: 1.8;
font-size: 1rem;
}
.prose li {
margin-bottom: 0.5rem;
line-height: 1.75;
color: #4b5563;
}
.prose code {
background-color: #f3f4f6;
padding: 0.125rem 0.375rem;
border-radius: 0.25rem;
font-size: 0.875rem;
font-family: ui-monospace, 'Courier New', monospace;
color: #1f2937;
border: 1px solid #e5e7eb;
}
.prose pre {
background-color: #1f2937;
color: #f3f4f6;
padding: 1.25rem;
border-radius: 0.5rem;
margin-bottom: 1.5rem;
overflow-x: auto;
border: 1px solid #374151;
}
.prose pre code {
background-color: transparent;
padding: 0;
border: none;
color: inherit;
font-size: 0.875rem;
}
.prose ul {
list-style-type: disc;
padding-left: 1.75rem;
margin-bottom: 1.25rem;
color: #4b5563;
}
.prose ol {
list-style-type: decimal;
padding-left: 1.75rem;
margin-bottom: 1.25rem;
color: #4b5563;
}
.prose > h2:first-child {
margin-top: 0;
}
/* Download links in sidebar */
.doc-download-link {
position: absolute;
right: 0.5rem;
top: 50%;
transform: translateY(-50%);
padding: 0.5rem;
color: #3b82f6;
background-color: transparent;
border-radius: 0.25rem;
transition: all 0.15s ease-in-out;
display: flex;
align-items: center;
justify-content: center;
text-decoration: none;
z-index: 10;
}
.doc-download-link:hover {
color: #1d4ed8;
background-color: #dbeafe;
}
.doc-download-link svg {
width: 1.25rem;
height: 1.25rem;
display: block;
}
/* Document list container */
#document-list .relative,
#document-list > div {
position: relative !important;
}
.doc-link {
padding-right: 3rem !important;
display: block;
width: 100%;
}
/* Modal styles */
#section-modal {
position: fixed;
inset: 0;
background-color: rgba(0, 0, 0, 0.5);
z-index: 9999;
display: none;
align-items: center;
justify-content: center;
padding: 1rem;
}
#section-modal.show {
display: flex !important;
animation: fadeIn 0.2s ease-out;
}
#section-modal > div {
display: flex;
flex-direction: column;
max-height: 90vh;
width: 100%;
max-width: 56rem;
background-color: white;
border-radius: 0.5rem;
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
animation: slideUp 0.3s ease-out;
}
#modal-content {
flex: 1 1 0%;
overflow-y: auto;
overflow-x: hidden;
padding: 1.5rem;
min-height: 0;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes slideUp {
from {
transform: translateY(20px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
</style>
</head>
<body class="bg-gray-50">
<!-- Header -->
<header class="bg-white border-b border-gray-200 sticky top-0 z-10">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4">
<div class="flex items-center justify-between">
<div>
<h1 class="text-2xl font-bold text-gray-900">Framework Documentation</h1>
</div>
<div class="flex items-center space-x-6">
<a href="/researcher.html" class="text-gray-600 hover:text-gray-900">Researcher</a>
<a href="/implementer.html" class="text-gray-600 hover:text-gray-900">Implementer</a>
<a href="/advocate.html" class="text-gray-600 hover:text-gray-900">Advocate</a>
<a href="/about.html" class="text-gray-600 hover:text-gray-900">About</a>
<a href="/" class="text-blue-600 hover:text-blue-700 font-medium">Home</a>
</div>
</div>
</div>
</header>
<!-- Main Layout -->
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
<div class="grid grid-cols-1 lg:grid-cols-4 gap-8">
<!-- Sidebar -->
<aside class="lg:col-span-1">
<div class="bg-white rounded-lg shadow-sm border border-gray-200 p-4 sticky top-24">
<h3 class="font-semibold text-gray-900 mb-3">Documents</h3>
<div id="document-list" class="space-y-1">
<div class="text-sm text-gray-500">Loading...</div>
</div>
<div class="mt-6 pt-4 border-t border-gray-200">
<h4 class="font-semibold text-gray-900 mb-3 text-sm">Table of Contents</h4>
<div id="toc" class="text-sm space-y-1">
<div class="text-gray-500">Select a document</div>
</div>
</div>
</div>
</aside>
<!-- Main Content -->
<main class="lg:col-span-3">
<div id="document-content" class="bg-white rounded-lg shadow-sm border border-gray-200 p-8">
<div class="text-center py-12">
<svg class="mx-auto h-12 w-12 text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"/>
</svg>
<h3 class="mt-2 text-lg font-medium text-gray-900">Select a Document</h3>
<p class="mt-1 text-sm text-gray-500">Choose a document from the sidebar to begin reading</p>
</div>
</div>
</main>
</div>
</div>
<script src="/js/components/document-cards.js?v=1759833751"></script>
<script src="/js/docs-app.js?v=1759833751"></script>
</body>
</html>