nfdi4plants / web-components-docs

Home Page:https://nfdi4plants.github.io/web-components-docs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@nfdi4plants/web-components docs

Link to gh-pages

Development

install

  1. Download repo.
  2. Run dotnet tool restore in root directory.
  3. Run dotnet paket install in root directory.
  4. Run dotnet fornax watch in \src folder.
  5. Open page in browser.

update web-components

Check out the installation docs. For fornax you will need to bundle the web-components with rollup. See the respective section for more information.

update Nfdi4Plants.Fornax

dotnet paket update Nfdi4Plants.Fornax

Load script will be generated automatically and is referenced in src\loaders\docsloader.fsx.

Update Searchbar

We use Pagefinder as basis for static website search. It generates the src/_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: npm run index

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: npm run indexserve.

About

https://nfdi4plants.github.io/web-components-docs/

License:MIT License


Languages

Language:JavaScript 99.9%Language:F# 0.1%