This the Hugo site powering our code library. The repo is mainly here for you to peak at the code. It's not intended to serve as a base for other projects. Should you have a question nevertheless, feel free to raise an issue.
If you want to run the site locally:
Install
brew install hugoRun
hugo server -DUpdate Algolia index (.env with private keys required, cf. 1password)
npm run algolia- Build (
hugocmd) - git add/commit/push all the directory, but especially
/publicthat contains the Code Library to deploy
Using content archetype to create pages will automatically add date and title.
Add a new page
// The resource will be named after the folder title
hugo new --kind component components/my-component-title // for most resources
hugo new --kind pages portal-themes/my-portal-theme-title // for port themesAdd new content to an existing page:
hugo new --kind content section/page/5 // Contents are ordered by the number of their folderTo create a schema.md file automatically for a resource. Use the helper :
node genschema.js <domainid> <datasetid> <fields sep by ,>ex:
node genschema.js issy-les-moulineaux chrono_issy0 evenement,imagecsv,jour,mois,annee,coordonnees_geo,webThe expected output is a schema.md file in the root directory, that can be then moved to the resource.