shacl-vue/docs/public
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Stephan Heunis c581edb29c
All checks were successful
Deploy on webserver / Build docs and deploy (push) Successful in 45s
Build shacl-vue / build (push) Successful in 51s
Factor out markdown rendering and add config error dialog
These changes were prompted by the need to show an error message when shacl-vue
fails to load the specified config file correctly. Such an error message would
ideally be configurable, with markdown support. Adding markdown support to a new
dialog in the 'ShaclVue' component highlighted the fact that markdown functionality
was already duplicated across the 'MarkdownEditor' and the 'WizardEditor' components.

This was factored out by doing the following:
- creating a 'useMarkdown' composable with the common functionality, and using this
  in 'ShaclVue', 'MarkdownEditor', and 'WizardEditor'
- moving common css, specifically the 'markdown-render' class, into
  'src/assets/style.css', which can now be used anywhere in the app

Then, the configuration composable was updated to load a config error message from the
new build-time configuration option CONFIG_ERROR_TEXT. A build-time config is necessary
here because the nature of the config error means that a normal runtime config option
won't be available to be displayed. The CONFIG_ERROR_TEXT option has to be supplied via
the config yaml file, which is passed via the BUILD_CONFIG='path/to/config/file.yaml'
option supplied at build time.

If this build-time config option is not supplied, the config error message defaults to:
'
  There was a problem loading the configuraton source.
  Please reload the page, or contact the site administrator if the problem persists.
'

This new error will show up in a dialog when a user opens shacl-vue in their browser, if:
- the main config URL cannot be fetched successfully
- the external config URL cannot be fetched successfully
2026-11-10 22:31:33 +02:00
..
build_config_error_text.png Factor out markdown rendering and add config error dialog 2026-11-10 22:31:33 +02:00
build_git_state.png update documentation for build configuration and security features 2026-10-23 15:54:09 +02:00
deployment_features_kickstarter.png docs restructuring and added content 2026-11-05 10:59:48 +02:00
DocumentUploadTemplate.ttl New generalized 'InstancesUploadEditor' 2025-11-20 15:22:33 +01:00
dumpthings_summary.png add useful features to docs 2025-11-20 22:47:28 +01:00
favicon.ico First basic setup of docs using vitepress, includes updating github action to deploy docs to '/docs' location in web app 2024-09-05 14:32:34 +02:00
forgejo_integration.png add useful features to docs 2025-11-20 22:47:28 +01:00
property_ordering.png Docs backlog; still much to do; make config options reachable by URL 2026-06-09 23:22:19 +02:00
shacl_vue.svg First basic setup of docs using vitepress, includes updating github action to deploy docs to '/docs' location in web app 2024-09-05 14:32:34 +02:00
wizard_editor_classes_option.png complete wizard editor docs 2026-10-30 11:46:41 +02:00
wizard_editor_demo.png complete wizard editor docs 2026-10-30 11:46:41 +02:00
wizard_editor_record_option.png complete wizard editor docs 2026-10-30 11:46:41 +02:00
wizard_editor_record_view_option.png complete wizard editor docs 2026-10-30 11:46:41 +02:00