-
Notifications
You must be signed in to change notification settings - Fork 3
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
Documentation integration #42
Merged
Merged
Changes from 28 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
d246620
documentation-integration
KirillDogadin-std 1bce594
add generation script
KirillDogadin-std d307d40
lint
KirillDogadin-std d7e1cc8
add command for doc gen
KirillDogadin-std b311227
embed the docs into the frontend
KirillDogadin-std a11ec38
lint
KirillDogadin-std 8b93c67
extend frontend readme
KirillDogadin-std 1ed85a1
better style
KirillDogadin-std cbb3d59
improve doc generations
KirillDogadin-std 1dced10
basic stable
KirillDogadin-std d4beb5e
dont gen toc
KirillDogadin-std d4f70f4
bonk, toc has style and swag
KirillDogadin-std 04dbe16
a bit nicer
KirillDogadin-std 9fbfdb5
move logic to docs from component
KirillDogadin-std ffdbb6d
responsivier
KirillDogadin-std f6cea25
Merge branch 'main' into doc-integration
KirillDogadin-std 49f8052
rm files
KirillDogadin-std 6298d38
micro polish
KirillDogadin-std f3cebb2
simplier readme
KirillDogadin-std 7f43b06
as above
KirillDogadin-std 1206c7d
rename npm command
KirillDogadin-std c2ed5d6
rm mkdirp dep
KirillDogadin-std 9d0958f
rm vueuse dep
KirillDogadin-std b4e5b97
lint
KirillDogadin-std 25350a9
Merge branch 'main' into doc-integration
KirillDogadin-std bfc2249
update kube
KirillDogadin-std e5b78d1
Merge branch 'main' into doc-integration
KirillDogadin-std e1a5a9f
regen package lock
KirillDogadin-std 809fc9a
fix @huntersofbook/naive-ui-nuxt to 0.5.1
valiafetisov da5e2dc
fix default api endpoint
KirillDogadin-std 2744dd2
cleanup styles and logic
valiafetisov 4f7110a
Merge branch 'doc-integration' of github.com:makerdao-ses/switchboard…
valiafetisov 75e868a
fix
valiafetisov d48cae2
fix width
valiafetisov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<script setup lang="ts"> | ||
const props = defineProps<{ | ||
tocLinks: Array<{ | ||
id: string; | ||
text: string; | ||
children: { id: string; text: string }[]; | ||
valiafetisov marked this conversation as resolved.
Show resolved
Hide resolved
|
||
}> | null; | ||
}>(); | ||
|
||
const emit = defineEmits<{ (e: "click", id: string): void }>(); | ||
|
||
const onClick = (id: string) => { | ||
emit("click", id); | ||
}; | ||
</script> | ||
|
||
<template> | ||
<nav> | ||
<ul class="ml-0 pl-4"> | ||
<li | ||
v-for="{ id, text, children } in props.tocLinks" | ||
:id="`toc-${id}`" | ||
:key="id" | ||
class="cursor-pointer text-sm list-none ml-0 mb-2 last:mb-0 hover:bg-gray-100" | ||
@click="onClick(id)" | ||
> | ||
{{ text }} | ||
<ul v-if="children" class="ml-3 my-2"> | ||
<li | ||
v-for="{ id: childId, text: childText } in children" | ||
:id="`toc-${childId}`" | ||
:key="childId" | ||
class="cursor-pointer text-xs list-none ml-0 pt-2 last:mb-0 hover:underline" | ||
@click.stop="onClick(childId)" | ||
> | ||
{{ childText }} | ||
</li> | ||
</ul> | ||
</li> | ||
</ul> | ||
</nav> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a terrible hack (to hardcode height of the header in css). I suggest to remove it (here and in the other place) and instead use combination of
flex-grow
andh-full
. Overall, you can maybe wait for the #38 merged cause it also fixes some of the related issues (eg fixed header)