Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ny teknisk plattform: MDX, Algolia-søk, og innlogging #158

Merged
merged 67 commits into from
Oct 18, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
67 commits
Select commit Hold shift click to select a range
83890e9
feat: adds mdx support
mikaelbr Jan 4, 2022
a842ed4
feat: changes to manual mdx pages
mikaelbr Jan 5, 2022
1e1a4fd
feat: use mdx as part of pages
mikaelbr Jan 7, 2022
12ec55c
removes unused code
mikaelbr Jan 7, 2022
eed29be
feat: adds auto injection of layout
mikaelbr Jan 12, 2022
16a0420
fix: comment on module
mikaelbr Jan 12, 2022
22b2f5c
feat: adds ability to do getServerSideProps for mdx files
mikaelbr Jan 12, 2022
89dab69
fix: remove log statement
mikaelbr Jan 12, 2022
4590b55
feat: adds ability to optionally login
mikaelbr Jan 12, 2022
0c63dac
feat: adds departure component
mikaelbr Jan 12, 2022
39da009
adds component for departure group
mikaelbr Jan 14, 2022
0359768
removes unused variable
mikaelbr Jan 31, 2022
1f0c476
init searchyness
mikaelbr Feb 3, 2022
cc4c644
refactor to indexer module
mikaelbr Feb 7, 2022
1b2926f
adds tree tools and attribute handling
mikaelbr Feb 7, 2022
36a12ea
adds indexing
mikaelbr Feb 7, 2022
0ee9fd8
feat: adds gray matter to index and clear on system for reindexing
mikaelbr Feb 8, 2022
107f8a9
feat: adds initial search
mikaelbr Feb 8, 2022
81efeef
fix: adds spacing to text indexing
mikaelbr Feb 8, 2022
4648455
fix: makes h3 linkable
mikaelbr Feb 8, 2022
e1def6f
feat: adds gh actions for indexing
mikaelbr Feb 8, 2022
3902f33
fix: better gh action\
mikaelbr Feb 8, 2022
421424f
temp pr
mikaelbr Feb 8, 2022
d8b4d07
temp pr
mikaelbr Feb 8, 2022
4ce50ab
fix only index on master
mikaelbr Feb 8, 2022
4c80172
feat: adds refinements to search
mikaelbr Feb 14, 2022
92c6cd1
fix: remove duplication search
mikaelbr Feb 25, 2022
87298c4
fix: sort by with types
mikaelbr Feb 25, 2022
1c18f5b
feat: adds support for departure on graymatter level
mikaelbr Mar 14, 2022
37aafcb
changes bergen to mdx
mikaelbr Mar 14, 2022
667c509
moves signin to sidebar
mikaelbr Mar 14, 2022
b1f4b02
updates search input design and login inputs
mikaelbr Mar 15, 2022
78169cb
adds department tabbar style and uu
mikaelbr Mar 15, 2022
5ed6221
adds initial design for search page
mikaelbr Mar 15, 2022
7373bbd
adds specific department faktura email
mikaelbr Mar 15, 2022
11bf75b
removes test department tabbar
mikaelbr Mar 15, 2022
50704e7
adds bergen to metadata
mikaelbr Mar 15, 2022
b103eb3
removes unused imports
mikaelbr Mar 15, 2022
f3e201b
Update search-index/index.mjs
mikaelbr Mar 17, 2022
0aee885
fix: issue with encoded uri
mikaelbr Mar 28, 2022
e962223
feat: adds anchor tags to h2/h3
mikaelbr Mar 28, 2022
2d42d63
chore: removes old redirects
mikaelbr Mar 28, 2022
b896dbd
refactor: removes unused code
mikaelbr Mar 28, 2022
55b0d0d
refactor: renames meta to frontmatter
mikaelbr Mar 28, 2022
8f2517a
refactor: updates to use variant common prettier config
mikaelbr Mar 28, 2022
960a6f9
fix: remove reset button from search
mikaelbr Mar 28, 2022
34ba9bc
Merge branch 'main' into v3
mikaelbr Oct 15, 2022
f55e181
fix: linkable for frontpage
mikaelbr Oct 15, 2022
4917d5e
chore: updates all dependencies
mikaelbr Oct 15, 2022
dfe7095
chore: gitignores next-env.d.ts
mikaelbr Oct 15, 2022
4d7274e
fix: login for new azure impl
mikaelbr Oct 15, 2022
809bb2c
docs: adds docs on env vars
mikaelbr Oct 15, 2022
16795fd
fix: typing issues
mikaelbr Oct 15, 2022
b89b040
fix: indexing from ast
mikaelbr Oct 15, 2022
9d8232a
fix: upgrades instasearch to ssr
mikaelbr Oct 16, 2022
3c2b324
fix: tweaks style search site
mikaelbr Oct 16, 2022
2abb215
fix: searchbox
mikaelbr Oct 16, 2022
7da599b
feat: adds search box to frontpage
mikaelbr Oct 16, 2022
bb67a07
feat: adds production-build script
mikaelbr Oct 16, 2022
b52a60b
ci: adds production-build with indexing
mikaelbr Oct 16, 2022
852c2cc
fix: sidebar navigation mobile
mikaelbr Oct 17, 2022
190a962
fix: adds config for font loading
mikaelbr Oct 17, 2022
0467f0d
fix: adds fallback department getter
mikaelbr Oct 17, 2022
72c0383
fix: better fallback when missing department
mikaelbr Oct 17, 2022
51af23d
fix: better phone department selector
mikaelbr Oct 17, 2022
2240bb0
fix: padding refinement list
mikaelbr Oct 18, 2022
6ebf7fb
refactor: reduce nested if clauses
mikaelbr Oct 18, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: linkable for frontpage
  • Loading branch information
mikaelbr committed Oct 15, 2022
commit f55e18199c5a456d1266eb13a8b8910487783166
1 change: 0 additions & 1 deletion pages/index.mdx
Original file line number Diff line number Diff line change
@@ -1,6 1,5 @@
---
title: En variants håndbok
layout: general
---

# En variants håndbok
Expand Down
4 changes: 3 additions & 1 deletion src/layouts/handbook/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 7,7 @@ import { LayoutProps } from '../signature';

import style from './handbook.module.css';

function createLinkable(el: 'h2' | 'h3') {
function createLinkable(el: 'h2' | 'h3' | 'h4') {
return ({ children, ...props }: JSX.IntrinsicElements[typeof el]) => {
const textContent = getNodeText(children);
const slug = slugify(textContent, { lower: false });
Expand All @@ -28,10 28,12 @@ function createLinkable(el: 'h2' | 'h3') {
}
mikaelbr marked this conversation as resolved.
Show resolved Hide resolved
const LinkableH2 = createLinkable('h2');
const LinkableH3 = createLinkable('h3');
const LinkableH4 = createLinkable('h4');

const components = {
h2: LinkableH2,
h3: LinkableH3,
h4: LinkableH4,
};

export default function HandbookLayout({ children, ...props }: LayoutProps) {
Expand Down