Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Dokumentation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FIT-Connect
Dokumentation
Commits
7f9327ac
Commit
7f9327ac
authored
2 years ago
by
Rene Roesner
Browse files
Options
Downloads
Patches
Plain Diff
planning#320
: Added toc as sidemenu
parent
dd5d25da
No related branches found
Branches containing commit
No related tags found
1 merge request
!160
fit-connect/planning#320 Erweiterung FAQ
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/css/additional/reset-docusaurus-default-style.scss
+8
-0
8 additions, 0 deletions
src/css/additional/reset-docusaurus-default-style.scss
src/views/FAQList.jsx
+47
-46
47 additions, 46 deletions
src/views/FAQList.jsx
with
55 additions
and
46 deletions
src/css/additional/reset-docusaurus-default-style.scss
+
8
−
0
View file @
7f9327ac
...
@@ -2,3 +2,11 @@ button {
...
@@ -2,3 +2,11 @@ button {
border
:
none
;
border
:
none
;
background
:
transparent
;
background
:
transparent
;
}
}
.table-of-contents
a
{
color
:
black
;
&
:hover
{
color
:
#3578e5
;
text-decoration
:
none
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/views/FAQList.jsx
+
47
−
46
View file @
7f9327ac
...
@@ -38,58 +38,59 @@ export default function FAQList() {
...
@@ -38,58 +38,59 @@ export default function FAQList() {
})
})
return
(
return
(
<
section
>
<
div
className
=
""
>
<
div
className
=
"max-w-6xl mx-auto px-4 sm:px-6"
>
<
div
className
=
"py-12 md:py-20 border-t border-gray-200"
>
<
div
className
=
"py-12 md:py-20 border-t border-gray-200"
>
{
/* Section header */
}
<
div
className
=
"flex"
>
<
div
className
=
"max-w-3xl mx-auto text-center pb-10"
>
<
div
className
=
"toc-inline flex-start pl-0 pr-12"
>
<
h2
className
=
"h2"
id
=
"FAQs"
>
<
TOCInline
toc
=
{
toc
}
minHeadingLevel
=
{
1
}
maxHeadingLevel
=
{
2
}
/>
FAQs
</
h2
>
</
div
>
<
div
className
=
"toc-inline mb-10"
>
<
TOCInline
toc
=
{
toc
}
minHeadingLevel
=
{
1
}
maxHeadingLevel
=
{
2
}
/>
</
div
>
{
groups
.
map
((
group
,
i
)
=>
(
<
div
key
=
{
'
g
'
+
i
}
>
<
div
className
=
"max-w-3xl mx-auto text-center pb-5"
key
=
{
i
}
>
<
a
className
=
"faq-anchor"
id
=
{
group
.
anchor
}
/>
<
h3
className
=
"h3"
>
{
group
.
name
}
</
h3
>
</
div
>
</
div
>
{
group
.
subgroups
.
map
((
subgroup
,
j
)
=>
(
<
div
className
=
"faq mx-auto px-4 sm:px-6"
>
<
div
key
=
{
'
sg
'
+
j
}
>
<
div
className
=
"max-w-3xl mx-auto text-center pb-10"
>
<
div
className
=
"max-w-3xl mx-auto text-center pb-5"
>
<
h2
className
=
"h2"
id
=
"FAQs"
>
<
a
className
=
"faq-anchor"
id
=
{
subgroup
.
anchor
}
/>
FAQs
<
h4
className
=
"h4"
>
{
subgroup
.
name
}
</
h4
>
</
h2
>
</
div
>
</
div
>
{
groups
.
map
((
group
,
i
)
=>
(
<
div
key
=
{
'
g
'
+
i
}
>
<
div
className
=
"max-w-3xl mx-auto text-center pb-5"
key
=
{
i
}
>
<
a
className
=
"faq-anchor"
id
=
{
group
.
anchor
}
/>
<
h3
className
=
"h3"
>
{
group
.
name
}
</
h3
>
</
div
>
<
ul
className
=
"mx-auto"
>
{
group
.
subgroups
.
map
((
subgroup
,
j
)
=>
(
{
subgroup
.
items
.
map
((
item
,
k
)
=>
(
<
div
key
=
{
'
sg
'
+
j
}
>
<
FaqItem
title
=
{
item
.
title
}
key
=
{
'
i
'
+
k
}
>
<
div
className
=
"max-w-3xl mx-auto text-center pb-5"
>
<
a
className
=
"faq-anchor"
id
=
{
subgroup
.
anchor
+
k
}
/>
<
a
className
=
"faq-anchor"
id
=
{
subgroup
.
anchor
}
/>
<
JsxParser
<
h4
className
=
"h4"
>
{
subgroup
.
name
}
</
h4
>
bindings
=
{
{
</
div
>
JSON
:
JSON
,
}
}
<
ul
className
=
"mx-auto"
>
components
=
{
{
Link
,
ApiLink
}
}
{
subgroup
.
items
.
map
((
item
,
k
)
=>
(
jsx
=
{
item
.
content
}
<
FaqItem
title
=
{
item
.
title
}
key
=
{
'
i
'
+
k
}
>
/>
<
a
className
=
"faq-anchor"
id
=
{
subgroup
.
anchor
+
k
}
/>
</
FaqItem
>
<
JsxParser
bindings
=
{
{
JSON
:
JSON
,
}
}
components
=
{
{
Link
,
ApiLink
}
}
jsx
=
{
item
.
content
}
/>
</
FaqItem
>
))
}
<
span
className
=
"block border-t border-gray-300 mb-10"
aria-hidden
=
"true"
/>
</
ul
>
</
div
>
))
}
))
}
<
span
</
div
>
className
=
"block border-t border-gray-300 mb-10"
))
}
aria-hidden
=
"true"
</
div
>
/>
{
/* Section header */
}
</
ul
>
</
div
>
</
div
>
))
}
</
div
>
))
}
</
div
>
</
div
>
</
div
>
</
div
>
</
section
>
)
)
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment