README.md (5196B)
1 # Start the container 2 3 Install Docker with Docker Compose v2.23.0 or newer. From this directory, run: 4 5 ```sh 6 docker compose up -d 7 ``` 8 9 Open <http://localhost:8000>. 10 11 To start with automatic application updates during development, run: 12 13 ```sh 14 docker compose watch 15 ``` 16 17 For containerized local checks and GitHub Actions linting, see 18 [linting/README.md](linting/README.md). 19 20 # Git frontend 21 22 Add one public HTTPS clone URL per line to `stagit/repos.txt`. Repository names 23 must be unique. Run `docker compose up -d --build`, then open <http://localhost>. 24 The same pages are served at <https://git.lindholmlabs.com> in production. 25 26 The stagit container clones or fetches immediately, generates static pages, then 27 sleeps for 24 hours. Restart it with `docker compose restart stagit` to sync now. 28 Mirrors and generated pages persist in named volumes. Unavailable remotes keep 29 their last local copy; removing a URL does not delete its mirror. Caddy serves the 30 completed output read-only; stagit exposes no ports. 31 32 The Git pages use local copies of Codemadness's 33 [stylesheet](https://codemadness.org/git/style.css), 34 [favicon](https://codemadness.org/git/favicon.png), and 35 [logo](https://codemadness.org/git/logo.png). 36 37 # Software Requirements Specification 38 39 ## Personal Résumé Website 40 41 ### 1. Intent 42 43 Build a permanent, lightweight résumé website for a software developer. 44 45 Treat the site as a document published on the Web, not as a web application. 46 47 ### 2. Application 48 49 **REQ-01 — Runtime**\ 50 Use Python and Flask. Keep all Flask logic in `cv/main.py`. 51 52 **REQ-02 — Page**\ 53 The application shall contain exactly one page. Serve the résumé at `/`. Keep HTML in `cv/index.html` and CSS in `cv/style.css`. 54 55 **REQ-03 — JavaScript**\ 56 Do not use JavaScript. 57 58 ### 3. Project Layout 59 60 **REQ-04 — Files**\ 61 Use this structure: 62 ``` 63 / 64 ├── .gitignore 65 ├── .gitattributes 66 ├── README.md 67 ├── compose.yml 68 ├── caddy/ 69 │ └── Caddyfile 70 ├── stagit/ 71 │ ├── Dockerfile 72 │ ├── sync.sh 73 │ ├── repos.txt 74 │ ├── style.css 75 │ ├── favicon.png 76 │ └── logo.png 77 └── cv/ 78 ├── main.py 79 ├── Dockerfile 80 ├── requirements.txt 81 ├── index.html 82 ├── robots.txt 83 ├── sitemap.xml 84 └── style.css 85 ``` 86 87 Application directories follow the layout above. Development linting tools live 88 in `linting/`, with GitHub Actions workflows in `.github/workflows/`. 89 90 **REQ-05 — README**\ 91 The README shall contain only: 92 93 1. Instructions to start the container. 94 2. Git frontend instructions. 95 3. This SRS. 96 97 Place the start instructions first. 98 99 ### 4. Container 100 101 **REQ-06 — Operation**\ 102 Package the application with Docker. `docker compose up -d` shall start the site. Restarting the container shall restore normal operation. 103 104 **REQ-07 — Compose Watch**\ 105 Configure `develop.watch` in `compose.yml`. `docker compose watch` shall detect changes to application files and update or rebuild the service as required. 106 107 **REQ-08 — Runtime Dependencies**\ 108 Do not require external CDNs, hosted fonts, analytics, databases, build systems, JavaScript packages, or third-party runtime services. 109 110 ### 5. Visual Design 111 112 **REQ-09 — Direction**\ 113 Use the visual restraint of long-lived FOSS and Unix websites. Suitable references include CRUX Linux, kernel.org, OpenBSD, NetBSD, suckless.org, SQLite, musl libc, BusyBox, Alpine Linux, and SourceHut. Do not copy a reference site. 114 115 Do not imitate a terminal. Do not use fake prompts, simulated commands, or monospace text as decoration. 116 117 **REQ-10 — Palette**\ 118 Use this palette: 119 ```less 120 Accent blue #007acc 121 Light highlight #d4d4d4 122 Primary text #333333 123 Dark highlight #252525 124 Dark background #1e1e1e 125 ``` 126 127 Declare colors as custom properties in `:root`. Reference those properties throughout the stylesheet. Use accent blue mainly for links and small accents. 128 129 **REQ-11 — Typography**\ 130 Use system or web-safe fonts only. Declare each font stack once as a custom property in `:root`. 131 132 **REQ-12 — Style**\ 133 Use typography, spacing, and hierarchy to structure the page. Avoid gradients, shadows, glass effects, animation, oversized hero sections, card grids, carousels, and decorative image galleries. 134 135 ### 6. Content and Layout 136 137 **REQ-13 — Sections**\ 138 Include: 139 140 - Introduction 141 - Work experience 142 - Education 143 - Selected projects 144 - Technical skills 145 - Contact and external links 146 147 Present experience and projects as concise text with ordinary links. 148 149 **REQ-14 — Responsive Layout**\ 150 Use a restrained maximum width on large displays. Use one readable column on small displays. Require no JavaScript for responsive behavior. 151 152 ### 7. Document Quality 153 154 **REQ-15 — HTML**\ 155 Use semantic HTML5 and a logical heading order. The document shall remain readable without CSS. 156 157 **REQ-16 — CSS**\ 158 Keep the stylesheet small and conventional. Prefer standard layout methods over frameworks or design-system abstractions. 159 160 **REQ-17 — Priorities**\ 161 Prioritize, in order: 162 163 1. Maintainability 164 2. Accessibility 165 3. Readability 166 4. Browser compatibility 167 5. Load time 168 6. Visual character 169 170 When several solutions meet a requirement, use the simplest one.