This repository powers a website analyzing how many Government of Canada services are available online from end-to-end.
It uses Hugo and was adapted from the Large Government of Canada IT projects analysis site.
The code here is licensed under the MIT License.
Development of this website requires Hugo, npm, and php.
After cloning the repository, run:
npm install
to install the gh-pages package used for deployments.
The _handling
folder includes two PHP scripts that automatically generate each of the pages in Hugo's content
directory.
To download the latest version of the GC Service Inventory CSV file, run:
php _handling/download.php
Once complete, to generate the content pages from the CSV file, run:
php _handling/parse.php
The overrideCSV
folder includes CSV files that normalize department names and add additional metadata for departments and agencies.
Note that the front-matter metadata description in end-to-end-services/content/_index.md
currently needs to be updated manually. All other data is generated automatically from the service inventory or the override CSV files.
Automatically-generated content files are still Git-tracked in order to simplify deployments to GitHub Pages.
For local development, use Hugo's built-in server:
hugo server -D --disableFastRender
To deploy updates to GitHub Pages, use:
npm run deploy
An Ottawa Civic Tech project
This is a volunteer project and is not affiliated with the Government of Canada.