Skip to content

About

Our webpresence for Nuts.nl

Resources

Stars

2 stars

Watchers

5 watching

Forks

Repository files navigation

The "webpresence" site for Nuts, where we tell the world who we are. Nothing very complicated or special, it's a regular statically generated Next.js site.

Hosting is done through Github pages. So be advised that pushing to master is equal to deploying.

Podcast

One thing to notice is that it's also where we host our Going Nuts podcast. So when refactoring this project in the future, please do keep that in mind ;)

The podcast lives at https://nuts.nl/going-nuts.xml.

Local development

First, run the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying pages/index.tsx. The page auto-updates as you edit the file.

API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.ts.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Search

One search over all formal Nuts documentation: nuts.nl, the Nuts node docs (ReadTheDocs, per version), the Nuts node API (OpenAPI), the specifications and the toepassingen (FHIR implementation guides) and the wiki. This repository has the search page and the search field. The index is Typesense at https://search.nuts.nl, filled every night by the indexer in nuts-foundation/infra-admin, which also lists the sources.

Part Where
Search page pages/zoeken.tsx; search field in components/Menu.tsx and components/SearchField.tsx
Typesense client lib/search.ts: https://search.nuts.nl with its public search-only key, unless .env.local sets another (see .env.example)
Ranking (re-orders results by source type) search/ranking.yaml, lib/ranking.ts; tests: npm run test:search

To work on the search locally, run npm run dev and open http://localhost:3000/zoeken/: it searches the production index. To use another Typesense, such as a local one filled by the indexer, set its address and search-only key in .env.local (see .env.example).

Ranking

Typesense returns the best text matches; the search page re-orders them by source type, without leaving any out. The default puts technical sources first ("Technisch"); visitors can switch to "Functioneel", and under "Geavanceerd" change the weight per source type and how much it counts. The formula and the defaults are in search/ranking.yaml; changing them only needs a new build of the site.

API operations link to the operation in the Scalar API reference, in every version of the Nuts node docs.

About

Our webpresence for Nuts.nl

Resources

Stars

2 stars

Watchers

5 watching

Forks

Releases

Packages

Used by

Contributors

Languages