- JavaScript 53.1%
- CSS 39.4%
- Astro 4.7%
- Makefile 0.8%
- TypeScript 0.7%
- Other 1.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| .gitea/workflows | ||
| .vscode | ||
| fixtures | ||
| plugins | ||
| prompts | ||
| public | ||
| scripts | ||
| src | ||
| svelte-components | ||
| .dockerignore | ||
| .gitignore | ||
| astro.config.mjs | ||
| Dockerfile | ||
| Makefile | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| REVIEW_SITE.md | ||
| site.config.yaml | ||
| svelte.config.js | ||
| tsconfig.json | ||
| VERSION | ||
Website
Astro website with Starlight documentation and a local compatibility layer for MkDocs Material-style Markdown.
Project Structure
The project is an Astro site with Starlight documentation, Svelte islands, lightweight server endpoints and one central configuration file.
/
├── site.config.yaml
├── public/
├── src/
│ └── pages/
│ └── index.astro
└── package.json
Structural site settings live in site.config.yaml: base path, public URL, site name, theme mode, menus, Git repository and SEO defaults.
Usage
make is the supported entry point for day-to-day usage. Run every command from the project root.
| Command | Action |
|---|---|
make |
Show available tasks |
make install |
Install dependencies |
make dev |
Start the Astro development server |
make build |
Generate tags and build the site to dist/ |
make preview |
Build and preview the production site |
make rebuild |
Clean generated artifacts, then build |
make clean |
Remove generated build/runtime artifacts |
make image |
Build the Docker image |
make image_run |
Run the Docker image for local testing |
make image_stop |
Stop the local Docker test container |
make tags |
Rebuild the generated tag index |
make status |
Show the repository Git status |
make astro ARGS="-- --help" |
Run the Astro CLI through the Makefile |
make import MKDOCS=/path/site |
Import a MkDocs site, then rebuild tags |
make import_test |
Verify the MkDocs Material importer |
make upgrade |
Upgrade FrontMark core code from reference |
The npm scripts remain implementation details used by the Makefile.
MkDocs Material Import
make import MKDOCS=/path/site reads mkdocs.yml or mkdocs.yaml, imports Markdown pages from docs_dir, copies documents/, images/ and videos/, skips tags.md, overrides/, js/ and css/, and updates site.config.yaml with site metadata, logo/language and the sidebar menu derived from nav.
The importer respects include_dir_to_nav sorting options:
plugins:
- include_dir_to_nav:
reverse_sort_file: true
reverse_sort_directory: true
MkDocs Material theme internals, palettes, features, plugins, markdown extensions and extra JavaScript/CSS are not migrated; FrontMark owns those layers.
FrontMark Upgrade
make upgrade updates the FrontMark engine from the reference repository:
make upgrade
It clones https://gitea.newkube.ia86.cc/sigMAX/Image_frontmark, overlays core code, refreshes the Makefile and bundled themes, then runs npm install by default. Docker image identity and version-major settings are preserved.
Protected project files include src/content/, src/imported/, brand and media assets, favicons, public/styles/overrides.css and public/styles/astro-overrides.css. Generated output, dist/, .astro/ and node_modules/ are not overlaid. The upgrade merges missing configuration options and reference theme definitions into site.config.yaml; review its dry-run before accepting those changes. Existing local values are retained by the missing-option merge. The legacy administration migration removes obsolete CMS configuration and routes while preserving admin.DefaultBucket.
Useful options:
make upgrade UPGRADE_DRY_RUN=1 UPGRADE_INSTALL=0
make upgrade UPGRADE_REF=main
make upgrade UPGRADE_INSTALL=0
make upgrade UPGRADE_REPO=https://example.test/FrontMark.git
The Docker image defaults to frontmark-website:local, and make image_run exposes the container on http://127.0.0.1:4321. Override the usual Make variables when needed:
make image IMAGE=frontmark-website:test
make image_run IMAGE=frontmark-website:test PORT=4325
make image_stop
CI/CD pipelines can also run a plain docker build -t image-name .; the Dockerfile computes the version tag from Git during the build and stores it in VERSION for the runtime image.
Site Configuration
To build the site under a prefix, change site.base in site.config.yaml:
site:
base: /frontmark
Use an empty site.base to publish at the domain root:
site:
base: ""
Then run make build. Set SITE_CONFIG_FILE=/path/to/site.config.yaml when the runtime config is mounted outside the project directory.
Engine provenance and administration
The engine was updated from official FrontMark commit 5697ce8ecfccf09abd0663ff718068519e4fc6a2. Site content, branding and CSS overrides were preserved. Generic configuration additions were excluded from this update; only the obsolete administration settings were migrated.
Sveltia and its /admin routes are removed. admin.DefaultBucket is an optional AssetManager working-bucket name; an empty value selects no bucket and does not affect site generation. It is not a web administration endpoint. Existing project content and uploads are retained.