9.9 KiB
title
| title |
|---|
| static-pages |
static-pages (hereinafter the "Application") is a collection of static HTML pages and related data/scripts for various small web utilities and content sections. The application provides interactive explorers for books and music libraries, product directories, games, chat services, testimonials, and other utility pages. It is designed to be easily synchronized to a production server using shell scripts and requires no backend or dynamic server-side logic.
1. User Documentation
The Application provides several interactive web utilities:
Book Library (/books/)
An interactive explorer for Naomi's book collection. Users can browse and search through the library of books with filtering capabilities by author. The interface displays book titles and authors extracted from digital book files.
Music Library (/music/)
An interactive explorer for Naomi's music collection. Similar to the book library, users can browse and search through songs with filtering by artist. The interface displays song titles and artists extracted from audio file metadata.
Product Directory (/products/)
An automated directory listing products offered by NHCarrigan. The page displays products from various categories including public projects, games, private projects, and archived items. Products are fetched from Gitea repositories and displayed with their descriptions and links where available.
Games (/games/)
A landing page showcasing various games developed by NHCarrigan, including links to the Beccalia Series and other game projects.
BlueSky Handle Generator (/bsky/)
A service page for provisioning custom Bluesky handles under the naomi.party domain. Currently requires manual processing through the Discord support server.
Chat Services (/chat/)
A comprehensive page outlining various ways to connect with NHCarrigan, including forum, IRC, and Matrix communication options with direct links and connection details.
Testimonials (/testimonials/)
A showcase page displaying testimonials from past clients about NHCarrigan's work and services.
Link Redirector (/link-redirector/)
A utility page that serves as a fallback for improperly configured subdomain redirects, providing users with support contact information.
This section is for those interacting with a live instance of the Application.
2. Technical Documentation
System Requirements
- Unix-like operating system (Linux/macOS)
- Bash shell
rsyncfor deploymentexiftoolfor extracting book metadatamid3v2for extracting music metadatajqfor JSON processing- Access to Gitea API (for products functionality)
- Web server capable of serving static files
Project Structure
├── books/ # Book library interface
│ ├── index.html # Main book explorer page
│ └── books.json # Generated book data
├── music/ # Music library interface
│ ├── index.html # Main music explorer page
│ └── songs.json # Generated music data
├── products/ # Product directory
│ ├── index.html # Product listing page
│ └── data.json # Generated product data
├── games/ # Games showcase
├── bsky/ # BlueSky handle service
├── chat/ # Communication options
├── testimonials/ # Client testimonials
├── link-redirector/ # Redirect fallback
├── mail/ # Mail service (manual sync)
├── manual/ # Manual/documentation
├── sitemap/ # Site navigation
├── books.sh # Book data generator script
├── songs.sh # Music data generator script
├── products.sh # Product data generator script
└── sync.sh # Deployment script
Data Generation Scripts
Book Library (books.sh)
- Scans
/home/naomi/cloud/Booksdirectory for book files - Extracts title and author metadata using
exiftool - Generates
books/books.jsonwith book data - Handles files without metadata by using filenames
Music Library (songs.sh)
- Scans
/home/naomi/musicdirectory for audio files - Extracts title and artist metadata using
mid3v2 - Generates
music/songs.jsonwith song data - Falls back to filename parsing for missing metadata
Product Directory (products.sh)
- Fetches repository data from Gitea API
- Organizes projects by category (public, games, private, archived)
- Generates
products/data.jsonwith project information - Requires
GITEA_TOKENenvironment variable
Deployment
The deployment process uses sync.sh which:
- Syncs all directories to production server using
rsync - Targets
prod:/home/nhcarriganfor most content - Requires manual sync for
mail/index.htmltomail:/home/user-data/www/default
Deployment Command:
./sync.sh
Directories synced automatically:
- bsky, chat, games, link-redirector, testimonials
- manual, sitemap, music, books, products
Running Your Own Instance
-
Clone the repository
-
Install dependencies:
# Ubuntu/Debian sudo apt install exiftool python3-mutagen jq rsync # macOS brew install exiftool jq rsync pip3 install mutagen -
Configure data sources:
- Update paths in
books.shfor your book collection - Update paths in
songs.shfor your music collection - Set
GITEA_TOKENenvironment variable for products functionality - Modify
products.shwith your Gitea instance URL and organizations
- Update paths in
-
Generate data:
./books.sh # Generate book library data ./songs.sh # Generate music library data ./products.sh # Generate product directory data -
Serve static files:
# Simple Python server for testing python3 -m http.server 8000 -
Deploy to production:
- Modify
sync.shwith your server details - Ensure SSH key authentication is configured
- Run
./sync.sh
- Modify
This section is for those interested in running their own instance of the Application.
3. Legal Documentation
The Application operates under NHCarrigan's standard legal framework:
License
This software is licensed under the global software license. Copyright is held by Naomi Carrigan.
Privacy Policy
Privacy considerations for the Application are covered under the global privacy policy.
Terms of Service
Terms of service for the Application are outlined in TERMS.md.
Code of Conduct
All interactions with the Application's community and codebase are governed by the Code of Conduct, referenced in CODE_OF_CONDUCT.md.
Security Policy
Security reporting and handling procedures are documented in SECURITY.md.
Data Handling
- Book Library: Processes local book file metadata only
- Music Library: Processes local music file metadata only
- Product Directory: Fetches public repository information from Gitea API
- BlueSky Service: Collects handle requests through Discord (manual process)
- No personal data: The Application does not collect or store personal user data directly
This section is for expansions to our legal policies specific to the Application.
4. Contributing Documentation
Getting Started
Contributors should review the global contributing guidelines referenced in CONTRIBUTING.md.
Development Workflow
-
Fork and Clone
git clone https://github.com/your-username/static-pages.git cd static-pages -
Set Up Development Environment
- Install required dependencies (see Technical Documentation)
- Configure data source paths for testing
- Set up environment variables if working with products functionality
-
Making Changes
- HTML Pages: Edit individual
index.htmlfiles in respective directories - Data Scripts: Modify
*.shscripts for data generation logic - Deployment: Update
sync.shfor deployment configuration changes
- HTML Pages: Edit individual
-
Testing Changes
# Test data generation ./books.sh ./songs.sh ./products.sh # Test locally python3 -m http.server 8000 -
Submitting Changes
- Create feature branch:
git checkout -b feature/your-feature - Commit changes with descriptive messages
- Push to your fork and create a Pull Request
- Ensure all data generation scripts work correctly
- Create feature branch:
Code Style Guidelines
- HTML: Use semantic HTML5 elements, include proper meta tags
- Shell Scripts: Follow bash best practices, include error handling
- JSON Data: Ensure proper formatting and validation
- Documentation: Update relevant documentation for new features
Areas for Contribution
- UI/UX Improvements: Enhance styling and user experience of static pages
- Data Processing: Improve metadata extraction and data generation scripts
- New Features: Add new utility pages or improve existing functionality
- Documentation: Expand user guides and technical documentation
- Testing: Add validation and testing for data generation processes
- Accessibility: Improve accessibility compliance across all pages
Communication
- Issues: Report bugs and request features through GitHub Issues
- Support: Join the chat server for discussion
- Contact: Reach out via email at
contact@nhcarrigan.com
Review Process
All Pull Requests are reviewed for:
- Code quality and adherence to project standards
- Functionality and testing
- Documentation updates
- Security considerations
- Compatibility with existing deployment process
This section is for documentation related to contributing to the Application's codebase.