jpadfield / simple-site Goto Github PK
View Code? Open in Web Editor NEWAutomated process for creating a set of html web pages for github projects
Home Page: https://jpadfield.github.io/simple-site/
License: GNU General Public License v3.0
Automated process for creating a set of html web pages for github projects
Home Page: https://jpadfield.github.io/simple-site/
License: GNU General Public License v3.0
When possible it will be good to update the build.php process to call the Mirador files from https://unpkg.com/ to stay consistent with the other external files. They are currently pulled from https://github.com/tanc-ahrc/mirador
Lines 643 to 662 in 4e50108
What improvements could be made to the navigation options, dropdowns, links to sub-pages with parent pages, breadcrumbs etc?
Zotero's API allows the details of public collections to be extracted and re-used.
It could be useful for these details to be pull, formatted and presented as part of a simple-site page.
Public collection URLs are in the form: https://www.zotero.org/USERNAME/collections/COLLECTIONCODE
API calls are in the form: https://api.zotero.org/users/USERID/collections/COLLECTIONCODE/items
The USERID is not easy to get from the USERNAME via the API but it can be scraped from any public URL is a section of javascript:
<script type="application/json" id="zotero-web-library-config">
{
"apiConfig": {
"apiAuthorityPart": "api.zotero.org"
},
"streamingApiUrl": "wss:\/\/stream.zotero.org",
"translateUrl": "https:\/\/t0guvf0w17.execute-api.us-east-1.amazonaws.com\/Prod\/",
"libraries": {
"include": [
{
"key": "uUSERID",
"isGroupLibrary": false,
"name": "USER DISPLAY NAME's Library",
"slug": "USERNAME"
}
],
"includeMyLibrary": false,
"includeUserGroups": false
}
} </script>
So given a public URL an extension would need to:
Some thought swill need to be given to exactly what data is used and how it should be displayed
With the shift from M2 to M3 extra manifests need to be added within a "catalog" variable rather than the old "Manifests" varibale
"catalog": [
{"manifestId": "https://data.ng-london.org.uk/0FNR-0001-0000-0000.iiif "},
{"manifestId": "https://manifests.britishart.yale.edu/manifest/34"},
{"manifestId": "https://iiif.harvardartmuseums.org/manifests/object/299843"},
{"manifestId": "https://media.nga.gov/public/manifests/nga_highlights.json"}],
Instead of
manifests: {
"https:\/\/data.ng-london.org.uk\/0FNR-0001-0000-0000.iiif ":{"provider":"Undefined"},
"https:\/\/manifests.britishart.yale.edu\/manifest\/34":{"provider":"Undefined"},
"https:\/\/iiif.harvardartmuseums.org\/manifests\/object\/299843":{"provider":"Undefined"},
"https:\/\/media.nga.gov\/public\/manifests\/nga_highlights.json":{"provider":"Undefined"},},
The simple text example now works, but the full Mirador extension needs to be cleaned up
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.