Skip to content

Commit 5dd9e58

Browse files
committed
Apply changes from current English docs to 2.1 docs
1 parent e01d24d commit 5dd9e58

File tree

12 files changed

+62
-135
lines changed

12 files changed

+62
-135
lines changed

i18n/en/docusaurus-plugin-content-docs/version-2.1/00-welcome.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ import {WelcomeQualityTable, WelcomeSupportTable} from '@site/src/components/doc
197197
existing feature set.
198198
</li>
199199
</ul>
200-
You can find the complete description of the SemVer here: <KolLink _label="https://semver.org" _href="https://semver.org" _target="_blank" />
200+
You can find the complete description of the SemVer here: <KolLink _href="https://semver.org" _target="_blank" />
201201
</p>
202202

203203
## Quality objectives

i18n/en/docusaurus-plugin-content-docs/version-2.1/03-faq.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import { KolLink } from '@public-ui/react';
3131
- **What does the licensing say?**<br/>
3232
The EUPL allows unrestricted use of the artifacts, which can be customized in a configurative way to suit one's needs.
3333
On the other hand, it forces the disclosure of changes made when copying source code from KoliBri (Copy-Left).
34-
See the <KolLink _href="/en/docs/project/license" _label="License" /> for more information.
34+
See the <KolLink _label="License" _href="/en/docs/project/license" /> for more information.
3535

3636
## Theming and styling
3737

@@ -40,21 +40,21 @@ import { KolLink } from '@public-ui/react';
4040
- **How does theming work?**<br/>
4141
Typically, web components are created with fixed styling. KoliBri separates the semantically accessible components from the styling and provides a register method for combining them. Since the web components must always be registered (defined) in the browser, there is the option here of loading the components with a defined theme.
4242
- **How to create your own theme?**<br/>
43-
We are always working to further simplify the creation and maintenance of themes. For example, the basic styling (pure layout) of the components from version 1.5 is used for this. You can set it up simply by creating a theme definition, e.g. with your own theme project (NPM package) using the <KolLink _href="https://github.com/public-ui/kolibri/blob/45726c50d7f28c9c595442b2241582816eca5670/packages/create-kolibri/templates/kolibri-library/packages/components/src/global/script.ts#L8" _label="TS file" _target="_blank" />. Our <KolLink _href="/designer/" _label="Theme Designer" _target="_blank" /> is also helpful for creating and maintaining themes.
43+
We are always working to further simplify the creation and maintenance of themes. For example, the basic styling (pure layout) of the components from version 1.5 is used for this. You can set it up simply by creating a theme definition, e.g. with your own theme project (NPM package) using the <KolLink _label="TS file" _href="https://github.com/public-ui/kolibri/blob/45726c50d7f28c9c595442b2241582816eca5670/packages/create-kolibri/templates/kolibri-library/packages/components/src/global/script.ts#L8" _target="_blank" />. Our <KolLink _label="Theme Designer" _href="/designer/" _target="_blank" /> is also helpful for creating and maintaining themes.
4444
- **Why does CSS need to be managed in JavaScript?**<br/>
4545
KoliBri components are not styled solely using embedded CSS or the use of CSS frameworks (such as Bootstrap, Material-UI, Tailwind CSS, etc.), but
4646
about the technical setting of CSS on the component. This has the advantage that the components are independent of the external CSS. Robustness is an architectural quality objective. It is reflected in the fact that only the component itself decides on its styling.
4747
- **Why do you need the scheme?**<br/>
48-
KoliBri is based on a sophisticated <KolLink _href="/en/docs/concepts/architecture" _label="Architecture" />. For example, the small schema package (@public-ui/schema) is used to define the tag names and language keys of the KoliBri components independently of the concrete implementation. This enables completely detached work with auto-completion when creating the theme, but without needing the components and their dependencies. This has advantages in some integration scenarios, such as static pages or content management systems (CMS).
48+
KoliBri is based on a sophisticated <KolLink _label="Architecture" _href="/en/docs/concepts/architecture" />. For example, the small schema package (@public-ui/schema) is used to define the tag names and language keys of the KoliBri components independently of the concrete implementation. This enables completely detached work with auto-completion when creating the theme, but without needing the components and their dependencies. This has advantages in some integration scenarios, such as static pages or content management systems (CMS).
4949

5050
## Technical
5151

5252
- **Why can KoliBri components really be accessible?**<br/>
5353
The KoliBri components are designed in terms of software architecture in such a way that they can only be instrumented via properties and not via their own HTML that can be entered. This means that the components can only be controlled via the API (properties). This is a quality feature because the components cannot be manipulated from the outside. The components are very restrictive and can therefore always be accessible.<br/>
54-
In order to be able to break out of this restriction, there is the <KolLink _href="/en/docs/concepts/expert-slot" _label="Expert-Slot" />, which makes it possible to embed your own HTML in the component. Accessibility via the expert slot is in the hands of the expert (developer) and should only be used in exceptional cases.
54+
In order to be able to break out of this restriction, there is the <KolLink _label="Expert-Slot" _href="/en/docs/concepts/expert-slot" />, which makes it possible to embed your own HTML in the component. Accessibility via the expert slot is in the hands of the expert (developer) and should only be used in exceptional cases.
5555
- **Why are component properties sometimes named differently from HTML naming?**<br/>
56-
In order to keep KoliBri easy to learn, the HTML naming is usually used. But even the HTML standard is not uniform in its naming across several elements (components). And that is why we have chosen uniform names for similar properties in KoliBri. See concept <KolLink _href="/en/docs/concepts/properties" _label="Properties" /> for more information.
56+
In order to keep KoliBri easy to learn, the HTML naming is usually used. But even the HTML standard is not uniform in its naming across several elements (components). And that is why we have chosen uniform names for similar properties in KoliBri. See concept <KolLink _label="Properties" _href="/en/docs/concepts/properties" /> for more information.
5757

5858
## Any questions?
5959

60-
If you still have questions, please send us an email to <KolLink _href="mailto:kolibri@itzbund.de" _label="kolibri@itzbund.de" _icons="codicon codicon-mail" />.
60+
If you still have questions, please send us an email to <KolLink _label="kolibri@itzbund.de" _href="mailto:kolibri@itzbund.de" _icons="codicon codicon-mail" />.

i18n/en/docusaurus-plugin-content-docs/version-2.1/10-get-started/1-first-steps.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {KolAlert, KolLink} from '@public-ui/react';
1+
import {KolAlert, KolLink,} from '@public-ui/react';
22

33
# First steps
44

@@ -8,7 +8,7 @@ import {KolAlert, KolLink} from '@public-ui/react';
88
_label="Click here to view and download the cheat sheet for developing."
99
_href="https://public-ui.github.io/cheat-sheet/"
1010
_target="_blank"
11-
></KolLink>
11+
/>
1212
</KolAlert>
1313
</div>
1414

i18n/en/docusaurus-plugin-content-docs/version-2.1/10-get-started/5-frameworks.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { KolAlert, KolLink, KolTable } from '@public-ui/react';
88

99
## Installation
1010

11-
All packages/artifacts of KoliBri are provided versioned in the public <kol-link _href="https://www.npmjs.com/search?q=%40public-ui" _target="npmjs">NPM-Registry</kol-link>.
11+
All packages/artifacts of KoliBri are provided versioned in the public <KolLink _label="NPM-Registry" _href="https://www.npmjs.com/search?q=%40public-ui" _target="_blank" />.
1212

1313
<KolTable
1414
_caption="Packages overview"
Lines changed: 18 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,16 @@
1-
import {
2-
KolAbbr,
3-
KolAlert,
4-
KolCard,
5-
KolHeading,
6-
KolIconIcofont,
7-
KolIndentedText,
8-
KolIcon,
9-
KolKolibri,
10-
KolDetails,
11-
KolLink,
12-
KolLogo,
13-
KolTable,
14-
} from '@public-ui/react';
15-
import { KoliBri } from '@site/src/components/KoliBri';
16-
import { Mermaid } from '@site/src/components/Mermaid';
1+
import {KolAlert, KolDetails, KolIndentedText, KolLink,} from '@public-ui/react';
2+
import {KoliBri} from '@site/src/components/KoliBri';
3+
import {Mermaid} from '@site/src/components/Mermaid';
174

185
# Theming
196

20-
<kol-alert _type="info">
21-
<img
22-
width="100%"
23-
src="/assets/theme-switch.png"
24-
alt="Shows where the switch for switching the theme is in the toolbar."
25-
/>
26-
<p>
27-
<kol-icon _icons="codicon codicon-arrow-right"></kol-icon>You can switch the theme from our site (KoliBri) using the
28-
switch in the toolbar above.
29-
</p>
30-
</kol-alert>
31-
32-
<br />
7+
<KolAlert _type="info" _variant="card">
8+
You can switch the theme from our site (KoliBri) using the switch in the toolbar above.
9+
</KolAlert>
3310

3411
<p>
35-
The unique feature of <KoliBri /> is the <strong>reference implementation</strong> of components that are{' '}
36-
<strong>semantically W3C- and WCAG-compliant</strong> from the ground up and thus{' '}
37-
<strong>completely accessible</strong> regarding assistive support. All components are implemented as{' '}
38-
<KolLink _href="https://developer.mozilla.org/en-US/docs/Web/Web_Components?retiredLocale=de" _target="mozilla">
39-
Web Components
40-
</KolLink>{' '}
41-
and are therefore reusable in all web-based projects. In the following figure, these components are represented by the
42-
gray-dashed shapes in the center.
12+
The unique feature of <KoliBri /> is the <strong>reference implementation</strong> of components that are <strong>semantically W3C- and WCAG-compliant</strong> from the ground up and thus <strong>completely accessible</strong> regarding assistive support. All components are implemented as <KolLink _label="Web Components" _href="https://developer.mozilla.org/en-US/docs/Web/Web_Components" _target="_blank" />
13+
and are therefore reusable in all web-based projects. In the following figure, these components are represented by the gray-dashed shapes in the center.
4314
</p>
4415
<p>
4516
<KolIndentedText>
@@ -48,40 +19,20 @@ import { Mermaid } from '@site/src/components/Mermaid';
4819
</p>
4920

5021
<img
51-
src="/assets/abgrenzung.jpg"
22+
src="/en/assets/abgrenzung.jpg"
5223
alt="Illustration of how components become custom components using various style guides."
5324
/>
5425

5526
<p>
5627
In the first release (v1.0) <KoliBri /> had directly implemented the individualization of the standard design using
57-
so-called{' '}
58-
<strong>
59-
<KolLink _href="https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties" _target="mozilla">
60-
CSS-Properties
61-
</KolLink>
62-
</strong>{' '}
63-
(
64-
<KolLink _href="https://uxdesign.cc/design-tokens-for-dummies-8acebf010d71" _target="uxdesign">
65-
Design-Tokens
66-
</KolLink>
67-
, <KolLink _href="https://tailwindcss.com" _target="tailwindcss">
68-
Tailwind CSS
69-
</KolLink>). With the implementation of further themes, however, we have found that we would have to introduce more and
70-
more CSS-Properties to be able to implement the flexibility for the desired design/UX (Corporate Design/Style guide). In
71-
case of doubt, a separate property would have to be provided for each customizability. The example of the
72-
<KolLink _href="https://mui.com/material-ui/api/button/#css" _target="mui">
73-
MUI-Button CSS
74-
</KolLink>{' '}
75-
shows well how the CSS properties (design tokens) become more and more.
28+
so-called <strong><KolLink _label="CSS-Properties" _href="https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties" _target="_blank" /></strong>
29+
(<KolLink _label="Design-Tokens" _href="https://uxdesign.cc/design-tokens-for-dummies-8acebf010d71" _target="_blank" />, <KolLink _label="Tailwind CSS" _href="https://tailwindcss.com" _target="_blank" />). With the implementation of further themes, however, we have found that we would have to introduce more and more CSS-Properties to be able to implement the flexibility for the desired design/UX (Corporate Design/Style guide). In
30+
case of doubt, a separate property would have to be provided for each customizability. The example of the <KolLink _label="MUI-Button CSS" _href="https://mui.com/material-ui/api/button/#css" _target="_blank" /> shows well how the CSS properties (design tokens) become more and more.
7631
</p>
7732
<p>
7833
<KolIndentedText>
7934
<strong>
80-
2. We have completely decoupled the whole CSS from the components (like{' '}
81-
<KolLink _href="https://styled-components.com" _target="styled-components">
82-
Styled-Components
83-
</KolLink>
84-
).
35+
2. We have completely decoupled the whole CSS from the components (like <KolLink _label="Styled-Components" _href="https://styled-components.com" _target="_blank" />).
8536
</strong>
8637
</KolIndentedText>
8738
</p>
@@ -141,20 +92,20 @@ stateDiagram-v2
14192

14293
<p>
14394
For example, the UI/UX team specifies the components of their design system with Figma. When the specification is
144-
transferred to implementation, the design is “transferred” to the basic components in the form of pure CSS using{' '}
145-
<KolLink _href="/en/docs/concepts/styling/designer">KoliBri-Designers</KolLink>. If customizability is desired in your
95+
transferred to implementation, the design is “transferred” to the basic components in the form of pure CSS using the
96+
<KolLink _label="KoliBri-Designer" _href="/en/docs/concepts/styling/designer" />. If customizability is desired in your
14697
design system, CSS properties or design tokens can be defined in the Designer for this purpose. So that the own theme
14798
can be shared across projects, the theme is packaged in an NPM package and can be made available via any registry.
14899
</p>
149100
<p>
150-
<KolDetails _summary="Design-Tokens">
101+
<KolDetails _label="Design-Tokens">
151102
Optionally, design schemes can be exported from Figma, for example, using design tokens. These can then be
152103
transferred into separate CSS files that contain the respective values for the CSS properties. Later, one of these
153104
CSS files is used to apply the concrete design in combination with the Web Components and the theme on the website.
154105
</KolDetails>
155106
</p>
156107
<p>
157-
<KolDetails _summary="Dark-Mode">
108+
<KolDetails _label="Dark-Mode">
158109
Optionally, a “dark mode” theme can also be implemented. For this, the required CSS can be stored in the globals of
159110
the KoliBri theme.
160111
</KolDetails>
@@ -164,10 +115,6 @@ stateDiagram-v2
164115
<p>
165116
Own specific components, which are not provided by KoliBri and unfortunately do not fit to the KoliBri component
166117
variety, can be built in own component libraries and maintained independently. For this purpose, we offer the
167-
so-called <strong>KoliBri-Factory</strong> (Stack) (see{' '}
168-
<KolLink _href="https://github.com/public-ui/kolibri/blob/main/docs/ARCHITECTURE.md#erweitert" _target="github">
169-
Modularization
170-
</KolLink>
171-
).
118+
so-called <strong>KoliBri-Factory</strong> (Stack) (see <KolLink _label="Modularization" _href="https://github.com/public-ui/kolibri/blob/main/docs/ARCHITECTURE.md#erweitert" _target="_blank" />).
172119
</p>
173120
</KolAlert>

i18n/en/docusaurus-plugin-content-docs/version-2.1/20-concepts/05-styling/35-designer.mdx

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,10 @@
1-
import {
2-
KolAbbr,
3-
KolAlert,
4-
KolCard,
5-
KolHeading,
6-
KolIconIcofont,
7-
KolIndentedText,
8-
KolIcon,
9-
KolKolibri,
10-
KolDetails,
11-
KolLink,
12-
KolLogo,
13-
KolTable,
14-
} from '@public-ui/react';
1+
import {KolCard, KolLink,} from '@public-ui/react';
152

163
# Designer
174

185
<div className="grid grid-cols-2">
19-
<KolCard _headline="Create own theme" _level={2}>
20-
<KolLink slot="content" _useCase="nav" _href="/designer" _target="designer">
21-
<div className="flex gap-4 py-2">
22-
<KolIcon className="homepage" _icons="codicon codicon-paintcan" />
23-
<span>Click here to open the designer in a new browser window.</span>
24-
</div>
25-
</KolLink>
6+
<KolCard _label="Create own theme" _level={2}>
7+
<KolLink _label="Click here to open the designer in a new browser window." _href="/designer" _target="_blank" _icons={{ left:'codicon codicon-paintcan' }} />
268
</KolCard>
279
</div>
2810

i18n/en/docusaurus-plugin-content-docs/version-2.1/20-concepts/07-swizzling.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ tags:
88
- concept
99
---
1010

11+
import { KolLink } from '@public-ui/react';
12+
1113
## Motivation
1214

1315
Numerous, sometimes complex requirements for components of design systems or component libraries would not have to be considered over and over again if there were small-scale, easily reusable basic components to carry these requirements.
@@ -24,4 +26,4 @@ The easiest method to customize a KoliBri component is wrapping. Here, an own co
2426

2527
### Overwriting
2628

27-
Another variant of swizzling is the overwriting of the inner component construction. In Web Components, this is often done using slots. In KoliBri, we have introduced the <kol-link _href="expert-slot" _label="expert slots"></kol-link> for this purpose.
29+
Another variant of swizzling is the overwriting of the inner component construction. In Web Components, this is often done using slots. In KoliBri, we have introduced the <KolLink _label="expert slots" _href="expert-slot" /> for this purpose.

i18n/en/docusaurus-plugin-content-docs/version-2.1/20-concepts/09-formular.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ tags:
88
- concept
99
---
1010

11-
As part of the refactoring to improve the developer experience, we have restructured the input components and converted them into separate components according to the <kol-link _href="https://html.spec.whatwg.org/multipage/input.html" _target="w3c">W3C-Aufteilung</kol-link>.
11+
import { KolLink } from '@public-ui/react';
12+
13+
As part of the refactoring to improve the developer experience, we have restructured the input components and converted them into separate components according to the <KolLink _label="W3C separation" _href="https://html.spec.whatwg.org/multipage/input.html" _target="_blank" />.
1214
In this way, the respective components only provide the properties that also have a function for the respective type. Properties that were previously maintained but had no function were removed from the programming.
1315

1416
## Vergleich zum HTML-Tag &lt;input&gt;
1517

1618
<p>
17-
If you look at the{' '}
18-
<kol-link _href="https://developer.mozilla.org/de/docs/Web/HTML/Element/Input" _target="mozilla">
19-
<code>&lt;input&gt;</code>-tag
20-
</kol-link>{' '}
21-
, then all types of an input field are implemented with only one tag (component). This results in the fact that all properties (attributes/properties) are
19+
If you look at the <KolLink _label="" _href="https://developer.mozilla.org/de/docs/Web/HTML/Element/Input" _target="_blank">
20+
<span slot="expert"><code>&lt;input&gt;</code>-tag</span>
21+
</KolLink>, then all types of an input field are implemented with only one tag (component). This results in the fact that all properties (attributes/properties) are
2222
possible, but have no function depending on the type.
2323
</p>
2424

i18n/en/docusaurus-plugin-content-docs/version-2.1/20-concepts/10-datenschutz.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,16 @@ tags:
77
- concept
88
---
99

10+
import { KolLink } from '@public-ui/react';
11+
1012
# Privacy concept
1113

1214
This concept addresses and explains the aspects of the KoliBri component library that are relevant from a data protection perspective.
1315

14-
> The <kol-link _href="/docs_en/datenschutz">privacy policy</kol-link> regarding the open source approach is described in a separate document.
16+
> The <KolLink _label="privacy policy" _href="/docs_en/datenschutz" /> regarding the open source approach is described in a separate document.
1517
1618
## Introduction
1719

18-
The component library KoliBri has an obvious and focused target area of its technical functional expression, which is described in detail in the <kol-link _href="/docs_en/manifest">manifest</kol-link>.
20+
The component library KoliBri has an obvious and focused target area of its technical functional expression, which is described in detail in the <KolLink _label="manifest" _href="/docs_en/manifest" />.
1921

2022
KoliBri is a collection of small, semantically accessible and flexibly reusable web components without any business logic or other data processing functionalities. In particular, it does not contain any functionalities for sending data. The aim is exclusively to ensure semantically accessible HTML markup of the various elements (components) in different style guides.

i18n/en/docusaurus-plugin-content-docs/version-2.1/40-project/02-license.mdx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ tags:
99
- legal
1010
---
1111

12+
import { KolLink } from '@public-ui/react';
13+
1214
# Licensing
1315

1416
## The EUPL is the "perfect" license‽
@@ -28,10 +30,7 @@ The "European Union Open Source License" (EUPL) is a copyleft license issued by
2830

2931
<kol-alert _type="info">
3032
On the website of the European Commission all information about the{' '}
31-
<kol-link _href="https://ec.europa.eu/info/european-union-public-licence_en" _target="eupl-1.2">
32-
European Union Public Licence (EUPL)
33-
</kol-link>{' '}
34-
can be found.
33+
<KolLink _label="European Union Public Licence (EUPL)" _href="https://ec.europa.eu/info/european-union-public-licence_en" _target="_blank" /> can be found.
3534
</kol-alert>
3635
<br />
3736
<br />

0 commit comments

Comments
 (0)