Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for ToC sublists #520

Merged
merged 3 commits into from
Jan 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions StoryRampSchema.json
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,46 @@
"minItems": 1
},

"tableOfContents": {
"type": "array",
"description": "Defines a custom table of contents structure.",
"items": {
"type": "object",
"description": "A table of contents item that resides on the root level.",
"properties": {
"title": {
"type": "string",
"description": "Title description of table of contents item."
},
"slideIndex": {
"type": "number",
"description": "Slide index linked to this table of contents item."
},
"sublist": {
"type": "array",
"description": "List of sublist items that stem from this table of contents item.",
"items": {
"type": "object",
"description": "A table of contents child item that resides inside a sublist.",
"properties": {
"title": {
"type": "string",
"description": "Title description of table of contents item."
},
"slideIndex": {
"type": "number",
"description": "Slide index linked to this table of contents item."
}
},
"required": ["title", "slideIndex"]
},
"default": []
}
},
"required": ["title", "slideIndex"]
}
},

"tocOrientation": {
"type": "string",
"description": "Specifies the orientation of the table of contents navigation menu.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,35 +13,6 @@
"backgroundImage": "00000000-0000-0000-0000-000000000000/assets/en/bg.jpg"
},
"slides": [
{
"title": "Interactive Map with Zoomies",
"panel": [
{
"config": "00000000-0000-0000-0000-000000000000/ramp-config/Locator_Map.json",
"type": "interactive-map",
"scrollguard": true,
"title": "Interactive Map with Zoom to Salish Sea",
"points": [
{
"title": "Home Extent",
"text": "Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
"target": {
"returnHome": true
}
},
{
"title": "Point of Interest",
"text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
"target": {
"layerId": "Salish_Sea_Boundaries",
"oid": 1
}
}
],
"duration": 2000
}
]
},
{
"title": "Overview",
"backgroundImage": "00000000-0000-0000-0000-000000000000/assets/en/GettyImages-516166467__1554821531978__w1920.jpg",
Expand Down Expand Up @@ -610,7 +581,111 @@
]
}
],
"tocOrientation": "vertical",
"tableOfContents": [
{
"title": "Overview",
"slideIndex": 0,
"sublist": [
{
"title": "Community Directory",
"slideIndex": 1
},
{
"title": "Interactive Map",
"slideIndex": 2
},
{
"title": "RAMP Carousel",
"slideIndex": 3
},
{
"title": "Dynamic Panel",
"slideIndex": 4
},
{
"title": "YouTube Video",
"slideIndex": 5
},
{
"title": "Cumulative Effects Video",
"slideIndex": 6
}
]
},
{
"title": "Oil Sands Deposits",
"slideIndex": 7
},
{
"title": "Oil Sands Extraction",
"slideIndex": 8,
"sublist": []
},
{
"title": "In-situ Extraction",
"slideIndex": 9
},
{
"title": "Where are Facilities Located?",
"slideIndex": 10,
"sublist": [
{
"title": "NPRI Substances Reported for Oil Sands Mining Faciltiies",
"slideIndex": 11
},
{
"title": "NPRI Substances Reported for Oil Sands Mining Facilities (2)",
"slideIndex": 12
},
{
"title": "Criteria Air Contaminant Releases From Oil Sands Mines",
"slideIndex": 13
},
{
"title": "Reported Mine Tailings From Oil Sands Surface Mining Facilities",
"slideIndex": 14
},
{
"title": "Reported Mine Tailings From Oil Sands Surface Mining Facilities (2)",
"slideIndex": 15
},
{
"title": "Trends in Mine Tailings Reported From Surface Mining Facilities",
"slideIndex": 16
},
{
"title": "Thermal in Situ Facilities",
"slideIndex": 17
},
{
"title": "NPRI Releases From Thermal in-situ Faciltiies",
"slideIndex": 18
}
]
},
{
"title": "Highcharts Demo (╯°□°)╯︵ ┻━┻",
"slideIndex": 19,
"sublist": [
{
"title": "Dynamic Slideshow with Hybrid Chart",
"slideIndex": 20
}
]
},
{
"title": "Managing Environmental Impacts",
"slideIndex": 21,
"sublist": [
{
"title": "Last Slide",
"slideIndex": 22
}
]
}
],
"tocOrientation": "horizontal",
"returnTop": false,
"stylesheets": ["00000000-0000-0000-0000-000000000000/styles/main.css"],
"contextLink": "https://www.canada.ca/en/environment-climate-change/services/national-pollutant-release-inventory/tools-resources-data/exploredata.html",
"contextLabel": "Explore National Pollutant Release Inventory data",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,88 @@
]
}
],
"tableOfContents": [
{
"title": "Apercu",
"slideIndex": 0,
"sublist": [
{
"title": "Gisements de sables bitumineux",
"slideIndex": 1
}
]
},
{
"title": "Extraction de sables bitumineux",
"slideIndex": 2,
"sublist": [
{
"title": "Extraction des sables bitumineux (2)",
"slideIndex": 3
},
{
"title": "Où sont situées les installations?",
"slideIndex": 4
}
]
},
{
"title": "Substances de l'INRP déclarées par les installations d’exploitation minière de sables bitumineux",
"slideIndex": 5,
"sublist": [
{
"title": "Substances de l'INRP déclarées par les installations d’exploitation minière de sables bitumineux MAP",
"slideIndex": 6
},
{
"title": "Rejets de principaux contaminants atmosphériques de mines de sables bitumineux",
"slideIndex": 7
},
{
"title": "Résidus miniers déclarés par les installations d’exploitation minière à ciel ouvert des sables bitumineux",
"slideIndex": 8
},
{
"title": "Résidus miniers déclarés à l’INRP par les installations d’exploitation minière à ciel ouvert de sables bitumineux",
"slideIndex": 9
},
{
"title": "Résidus miniers déclarés à l’INRP par les installations d’exploitation minière à ciel ouvert de sables bitumineux MAP",
"slideIndex": 10
}
]
},
{
"title": "Tendances dans les résidus miniers déclarés par les installations d’exploitation minière à ciel ouvert",
"slideIndex": 11
},
{
"title": "Installations in situ",
"slideIndex": 12,
"sublist": [
{
"title": "Rejets à l’air déclarés par les installations in situ",
"slideIndex": 13
},
{
"title": "Tendances entourant les substances déclarées à l’INRP par les installations in situ",
"slideIndex": 14
},
{
"title": "Rejets à l’air déclarés à l’INRP par les installations in situ",
"slideIndex": 15
},
{
"title": "Gestion des répercussions sur l’environnement",
"slideIndex": 16
}
]
},
{
"title": "Finale",
"slideIndex": 17
}
],
"contextLink": "https://www.canada.ca/en/environment-climate-change/services/national-pollutant-release-inventory/tools-resources-data/exploredata.html",
"contextLabel": "Explore National Pollutant Release Inventory data",
"lang": "en",
Expand Down
Loading
Loading