Caution
This repository is archived and not further developed!
This fornax template implements the existing nfdi-web-components for documentation.
See the official @nfdi4plants/web-components docs for fornax support.
- Download repo.
- Run
dotnet tool restore
in root directory.
- Make changes to library and add unit tests.
- Run
.\build.cmd releasenotes semver:xxx
, wherexxx
can be minor, major or patch. (This will also update the version inpackage.json
inside the template project.) - Run
.\build.cmd release
. This will:- Run tests
- Build the library
- Create a nuget packages for both the library and the template and copy the library-.nupkg to the client test folder.
- Update nuget reference for library to new version.
- In
client\loaders\_lib.fsx
. - 👀 It might be necessary to clear nuget cache if the version was not changed for it to update.
- In
- Test the new version.
- if working correctly upload the new version to nuget
- Verify template is working correctly:
- Only if library was updated:
- Wait until fully published by nuget then update Nfdi4Plants.Fornax in src/Nfdi4Plants.Fornax.Template/content with
dotnet paket update Nfdi4Plants.Fornax
- rebuild with package with
.\build.cmd release
- Wait until fully published by nuget then update Nfdi4Plants.Fornax in src/Nfdi4Plants.Fornax.Template/content with
dotnet new --uninstall Nfdi4Plants.Fornax.Template
dotnet new --install pkg\Nfdi4Plants.Fornax.Template.X.X.X.nupkg
, adjust semver accordingly.- Create a new folder somewhere and do
dotnet new NFDIdocs
inside. Then follow the freshly created README.md.
- Only if library was updated:
Check out the installation docs on nfdi4plants/web-components. For fornax you will need to bundle the web-components with rollup. See the respective section for more information.
- Run
.\build.cmd fornax
in root folder. - Open page http://127.0.0.1:8080 in browser.
We use Pagefinder as basis for static website search.
It generates the client/_public/_pagefind
folder, containing css and js to power the searchbar.
If the searchbar is not visible (should be above sidebar) you need to rerun pagefind.
Run: npx -y pagefind --source .\client\_public\
This will create the necessary files. But at the moment will not correctly work when Using the testclient. It will show the ui part but will not function.
To test the searchfunction you can use: npx -y pagefind --source .\client\_public\ --serve
.