This repository deploys a basic installation of Mirador 3 on GitHub Pages.
I had in mind a researcher who wants to create their own customised IIIF workspace to compare images or manuscripts without installing any software or fiddling about on the command line.
- Click on the green Use this template button and select 'Create a new repository'
- Give your new repository a name using the 'Repository name' field.
- Click on the Create repository button
After a few seconds your new repository will be generated. The 'Publish website' action will run automatically to build your Mirador site. Look under the 'Actions' tab to view its progress. Once it's finished (you'll see a green tick), you have to configure GH Pages:
- Click on the repository's 'Settings' tab.
- Select 'Pages' from the left-hand menu.
- Under 'Build and deployment':
- set 'Source' to 'Deploy from a branch'
- set 'Branch' to 'gh-pages'
- click Save
Another action will now run to deploy your Mirador site to GH Pages. Once again you can check its status under the 'Actions' tab. When it's finished you'll be able to access your Mirador installation at: https://[your GitHub user name].github.io/[your repository name]/
. You can find the url by clicking on 'Deployments' from your repository's home page.
Any changes you make to the repository from now on will be automatically deployed to GH Pages.
You can set default manifests by either uploading local manifests to the repository, or by adding manifest urls to the manifest_urls.txt
file.
If you have local manifests that you want to open by default in your Mirador workspace, all you need to do is upload them to the repository.
- From your repository's home page click on the
manifests
folder to open it. - Click on the Add files button, then select 'Upload files'.
- Select the manifests you want to upload.
- Once the file has loaded, click on the green Commit changes button.
Uploading manifests automatically triggers the deploy actions. As part of the deployment, a little python script checks the manifests
directory and adds the names of any files it finds to the Mirador configuration.
Once the actions have run, reload your Mirador workspace to see the manifests.
You can also add default manifest urls by inserting them in manifest_urls.txt
.
- From your repository's home page click on the
manifest_urls.txt
file to open it. - Click on the pencil icon to edit the file.
- Insert manifest urls – one per line.
- Click on the green Commit changes button.
A new version of your Mirador workspace will be automatically built and deployed. The urls are read from the file and inserted in the Mirador config.
This repository uses Mirador 3 which is nearing the end of its lifespan. Mirador 4 is in alpha release. Once it's ready I'll create a new Mirador 4 template.
The Mirador Image Tools plugin is installed by default.
I've also included the Mirador Annotations plugin as part of the package, but haven't initialised it in the Mirador config. Uncomment the annotations-related lines in the Mirador config to enable annotations using your browser's local storage.
This repository was created by Tim Sherratt, based on the Mirador Integration example repository.