summaryrefslogtreecommitdiffhomepage
path: root/src/sisudoc
Commit message (Collapse)AuthorAgeFilesLines
* search cgi: follow the search database's attribute and elementRalph Amissah2026-09-141-101/+101
| | | | | | | | | | | | | | | The database's rows now carry data-indent= rather than a bare indent=, and <code> rather than the obsolete <tt>, because the cgi renders those rows into html where neither of the old forms is valid. The stylesheet here holds its own copy of the rule, so it follows: p[indent="h0i0"] -> p[data-indent="h0i0"] (100 selectors) tt { ... } -> code { ... } This is paired with the sisudoc-spine commit "epub, html, db: use of elements & attributes, fix". Either alone loses the indent styling of search results. (assisted by Claude-Code)
* search: allow a db path from the environmentRalph Amissah2026-09-141-2/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow a db path from the environment, and refuse what it cannot read Three changes related to opening the database: - provide an environment override for the db path: SPINE_SEARCH_DB_PATH overrides the compiled-in db_sqlite_path, beside the other environment.get calls. Path was the one setting without an override, (SERVER_NAME, REQUEST_SCHEME, SCRIPT_NAME, QUERY_STRING could come from the environment). This adds consistency and makes testing the search form database builds easier (as it no longer requires rebuilding the binary with a patched configuration for readily accessible db path) - selected_db is required to be a plain filename within the configured directory, the database is opened read only, and a database that is not there is named rather than created. - The form now reads PRAGMA user_version, as stamped by spine, and refuses a database built to another schema version, naming both versions and the two commands that rebuild it. A database carrying neither of the tables it joins is refused the same way. sqlite_db_schema_version_- is expected and has to be in sync/step with the sqlite_db_schema_version in sisudoc-spine src/sisudoc/outputs/io_out/sqlite.d; the two tests added there under test/ check that they agree. (assisted by Claude-Code)
* change search result symbols for show index & textRalph Amissah2026-06-251-4/+9
|
* org headers rearranged (& odd hilighting issue)Ralph Amissah2026-05-041-9/+9
|
* 2026 (+ org-mode header minor)Ralph Amissah2026-01-102-12/+12
|
* 2025Ralph Amissah2025-01-012-3/+3
|
* nix build flake.nix fixRalph Amissah2024-12-031-0/+1
|
* READMEs & additional copyright (as sisudoc-spine)Ralph Amissah2024-05-071-0/+93
|
* arsd.core.d importRalph Amissah2024-05-071-0/+1
|
* 0.16.0 sync ver. & src dir name with sisudoc spineRalph Amissah2024-04-111-0/+1931