Skip to content

Commit f081352

Browse files
authored
Merge pull request #143 from basemate/docs_test
Support new Doc App
2 parents bfe3d19 + 024e035 commit f081352

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+115
-90
lines changed

docs/README.md

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
1-
# Documentation
2-
3-
## Getting started
4-
5-
1. [Install](./install)
6-
2. [Concepts](./concepts)
7-
3. [Core Components](./components)
8-
4. [Integrations](./integrations)
9-
5. [Tooling](./tooling_and_ecosystem)
10-
11-
## Diving deeper
12-
13-
6. [Extend](./extend)
14-
7. [Architecture](./architecture)
15-
8. [Contribute](./contribute)
1+
# Table of Contents
2+
3+
1. [Install](/docs/install)
4+
2. [Concepts](/docs/concepts)
5+
3. [Core Components](/docs/components)
6+
4. [Integrations](/docs/integrations)
7+
5. [Tooling](/docs/tooling)
8+
6. [Extend](/docs/extend)
9+
7. [Architecture](/docs/architecture)
10+
8. [Contribute](/docs/contribute)

docs/architecture/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ In this section, we take a deep dive into how Matestack is implemented.
44

55
**The Matestack core was developed while iterating concepts following the main goal of `just making it work`. Therefore, the core is not yet well engineered in some places. After we were happy with it working, we've spent quite some time writing tests to save the status quo, and now we're about to refactor the core.**
66

7-
Please refer to the [detailed architectural drawing](./matestack_rendering.png) while reading the following documentation.
7+
Please refer to the [detailed architectural drawing](/docs/architecture/matestack_rendering.png) while reading the following documentation.
88

99
## Example
1010

docs/components/README.md

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
11
# Core Components
22

33
matestack provides a wide set of core components, which enables you to easily build your UI.
4-
You can build your [own components](../extend/custom_components.md) as well, either static or dynamic.
4+
You can build your [own components](/docs/extend/custom_components.md) as well, either static or dynamic.
55

66
## Static Core Components
77

8-
- [div](./div.md)
9-
- [header](./header.md)
10-
- [footer](./footer.md)
11-
- [main](./main.md)
12-
- [nav](./nav,md)
13-
- [section](./section.md)
14-
- [br](./br.md)
15-
- [hr](./hr.md)
16-
- [heading](./heading.md)
17-
- [plain](./plain.md)
18-
- [pg](./pg.md)
19-
- [span](./span.md)
20-
- [icon](./icon.md)
21-
- [list](./list.md)
8+
- [div](/docs/components/div.md)
9+
- [header](/docs/components/header.md)
10+
- [footer](/docs/components/footer.md)
11+
- [main](/docs/components/main.md)
12+
- [nav](/docs/components/nav,md)
13+
- [section](/docs/components/section.md)
14+
- [br](/docs/components/br.md)
15+
- [hr](/docs/components/hr.md)
16+
- [heading](/docs/components/heading.md)
17+
- [plain](/docs/components/plain.md)
18+
- [pg](/docs/components/pg.md)
19+
- [span](/docs/components/span.md)
20+
- [icon](/docs/components/icon.md)
21+
- [list](/docs/components/list.md)
2222
- ul
2323
- ol
2424
- li
25-
- [table](./table.md)
25+
- [table](/docs/components/table.md)
2626
- th
2727
- tr
2828
- td
29-
- [img](./img.md)
30-
- [video](./video.md)
31-
- [button](./button.md)
32-
- [link](./link.md)
33-
- [label](./label.md)
34-
- [progress](./progress.md)
29+
- [img](/docs/components/img.md)
30+
- [video](/docs/components/video.md)
31+
- [button](/docs/components/button.md)
32+
- [link](/docs/components/link.md)
33+
- [label](/docs/components/label.md)
34+
- [progress](/docs/components/progress.md)
3535

3636
## Dynamic Core Components
3737

38-
- [form](./form.md)
38+
- [form](/docs/components/form.md)
3939
- form_input
4040
- form_select
4141
- form_submit
42-
- [action](./action.md)
43-
- [transition](./transition.md)
44-
- [onclick](./onclick.md)
42+
- [action](/docs/components/action.md)
43+
- [transition](/docs/components/transition.md)
44+
- [onclick](/docs/components/onclick.md)

docs/components/action.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# matestack core component: Action
22

3-
Show [specs](../../spec/usage/components/action_spec.rb)
3+
Show [specs](/spec/usage/components/action_spec.rb)
44

55
The action component allows us to trigger HTTP requests!
66

@@ -225,7 +225,7 @@ end
225225

226226
### Example 3.1: Async request with success event emit used for rerendering
227227

228-
Below, we define an action component and an async component. The async component is documented [here](./async.md),
228+
Below, we define an action component and an async component. The async component is documented [here](/docs/components/async.md),
229229
for now it is just important that it waits for our `action_config` success message and will get re-rendered.
230230

231231
```ruby

docs/components/async.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# matestack core component: Async
22

3-
Show [specs](../../spec/usage/components/async_spec.rb)
3+
Show [specs](/spec/usage/components/async_spec.rb)
44

55
As the name suggests, the async component allows us to let our components behave asynchronously!
66

docs/components/blockquote.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# matestack core component: Blockquote
22

3-
Show [specs](../../spec/usage/components/blockquote_spec.rb)
3+
Show [specs](/spec/usage/components/blockquote_spec.rb)
44

55
The HTML blockquote tag implemented in ruby.
66

docs/components/br.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# matestack core component: Br
22

3-
Show [specs](../../spec/usage/components/br_spec.rb)
3+
Show [specs](/spec/usage/components/br_spec.rb)
44

55
The HTML `<br>` tag implemented in ruby.
66

docs/components/button.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# matestack core component: Button
22

3-
Show [specs](../../spec/usage/components/button_spec.rb)
3+
Show [specs](/spec/usage/components/button_spec.rb)
44

55
The HTML `<button>` tag implemented in Ruby.
66

docs/components/caption.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# matestack core component: Caption
22

3-
Show [specs](../../spec/usage/components/caption_spec.rb)
3+
Show [specs](/spec/usage/components/caption_spec.rb)
44

55
The HTML `<caption>` tag implemented in ruby. According to the [W3C specification](https://www.w3schools.com/tags/tag_caption.asp), it defines a table caption, it must be inserted directly after the `<table>` tag, and there should only be one caption per table.
66

docs/components/collection.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# matestack core component: Collection
22

3-
Show [specs](../../spec/usage/components/collection_spec.rb)
3+
Show [specs](/spec/usage/components/collection_spec.rb)
44

55
The `collection` component is designed to
66

docs/components/details.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# matestack core component: Details
22

3-
Show [specs](../../spec/usage/components/details_summary_spec.rb)
3+
Show [specs](/spec/usage/components/details_summary_spec.rb)
44

55
Use details to implement `<details>` and `<summary>` tags.
66

docs/components/div.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# matestack core component: Div
22

3-
Show [specs](../../spec/usage/components/div_spec.rb)
3+
Show [specs](/spec/usage/components/div_spec.rb)
44

55
The HTML div tag implemented in ruby.
66

docs/components/footer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# matestack core component: Footer
22

3-
Show [specs](../../spec/usage/components/footer_spec.rb)
3+
Show [specs](/spec/usage/components/footer_spec.rb)
44

55
The HTML footer tag implemented in ruby.
66

docs/components/form.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# matestack core component: Form
22

3-
Show [specs](../../spec/usage/components/form_spec.rb)
3+
Show [specs](/spec/usage/components/form_spec.rb)
44

55
## Parameters
66

docs/components/header.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# matestack core component: Header
22

3-
Show [specs](../../spec/usage/components/header_spec.rb)
3+
Show [specs](/spec/usage/components/header_spec.rb)
44

55
The HTML header tag implemented in ruby.
66

docs/components/heading.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# matestack core component: Heading
22

3-
Show [specs](../../spec/usage/components/heading_spec.rb)
3+
Show [specs](/spec/usage/components/heading_spec.rb)
44

55
The HTML heading tag implemented in ruby.
66

docs/components/hr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# matestack core component: Hr
22

3-
Show [specs](../../spec/usage/components/hr_spec.rb)
3+
Show [specs](/spec/usage/components/hr_spec.rb)
44

55
The HTML `<hr>` tag implemented in ruby.
66

docs/components/icon.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# matestack core component: Icon
22

3-
Show [specs](../../spec/usage/components/icon_spec.rb)
3+
Show [specs](/spec/usage/components/icon_spec.rb)
44

55
The HTML `<i>` tag implemented in ruby. Use it for fancy icons!
66

docs/components/img.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# matestack core component: Img
22

3-
Show [specs](../../spec/usage/components/icon_spec.rb)
3+
Show [specs](/spec/usage/components/icon_spec.rb)
44

55
The HTML img tag implemented in ruby.
66

docs/components/label.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# matestack core component: Label
22

3-
Show [specs](../../spec/usage/components/label_spec.rb)
3+
Show [specs](/spec/usage/components/label_spec.rb)

docs/components/link.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# matestack core component: Link
22

3-
Show [specs](../../spec/usage/components/link_spec.rb)
3+
Show [specs](/spec/usage/components/link_spec.rb)
44

55
This component is used to either navigate within your matestack application or to send requests to outside URLs.
66

docs/components/list.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# matestack core component: Lists
22

3-
Show [specs](../../spec/usage/components/list_spec.rb)
3+
Show [specs](/spec/usage/components/list_spec.rb)
44

55
Use lists to implement `<ol>`, `<ul>` and `<li>`-tags.
66

docs/components/main.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# matestack core component: Main
22

3-
Show [specs](../../spec/usage/components/main_spec.rb)
3+
Show [specs](/spec/usage/components/main_spec.rb)
44

55
The HTML main tag implemented in ruby.
66

docs/components/nav.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# matestack core component: Nav
22

3-
Show [specs](../../spec/usage/components/nav_spec.rb)
3+
Show [specs](/spec/usage/components/nav_spec.rb)
44

55
The HTML nav tag implemented in ruby.
66

docs/components/onclick.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# matestack core component: Action
22

3-
Show [specs](../../spec/usage/components/action_spec.rb)
3+
Show [specs](/spec/usage/components/action_spec.rb)

docs/components/paragraph.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# matestack core component: Paragraph
22

3-
Show [specs](../../spec/usage/components/paragraph_spec.rb)
3+
Show [specs](/spec/usage/components/paragraph_spec.rb)
44

55
The HTML `<p>` tag implemented in ruby. This is a workaround because the single `p` is a reserved keyword in Ruby (directly writes `obj.inspect` followed by a newline to the program’s standard output, e.g. `p foo` equals `puts foo.inspect`).
66

docs/components/pg.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# matestack core component: PG
22

3-
Show [specs](../../spec/usage/components/pg_spec.rb)
3+
Show [specs](/spec/usage/components/pg_spec.rb)
44

5-
The HTML `<p>` tag implemented in ruby. Please refer to the [paragraph core component](./paragraph.md) since the PG component is deprecated and will be removed sometime in the future.
5+
The HTML `<p>` tag implemented in ruby. Please refer to the [paragraph core component](/docs/components/paragraph.md) since the PG component is deprecated and will be removed sometime in the future.

docs/components/plain.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# matestack core component: Plain
22

3-
Show [specs](../../spec/usage/components/plain_spec.rb)
3+
Show [specs](/spec/usage/components/plain_spec.rb)
44

55
This element simply renders the value of a variable (or simple a string) wherever you want it.
66

docs/components/progress.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# matestack core component: Progress
22

3-
Show [specs](../../spec/usage/components/progress_spec.rb)
3+
Show [specs](/spec/usage/components/progress_spec.rb)

docs/components/section.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# matestack core component: Section
22

3-
Show [specs](../../spec/usage/components/section_spec.rb)
3+
Show [specs](/spec/usage/components/section_spec.rb)
44

55
The HTML section tag implemented in ruby.
66

docs/components/small.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# matestack core component: Small
22

3-
Show [specs](../../spec/usage/components/small_spec.rb)
3+
Show [specs](/spec/usage/components/small_spec.rb)
44

55
The HTML small tag implemented in ruby.
66

docs/components/span.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# matestack core component: Span
22

3-
Show [specs](../../spec/usage/components/span_spec.rb)
3+
Show [specs](/spec/usage/components/span_spec.rb)
44

55
The HTML span tag implemented in ruby.
66

docs/components/strong.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# matestack core component: Strong
22

3-
Show [specs](../../spec/usage/components/strong_spec.rb)
3+
Show [specs](/spec/usage/components/strong_spec.rb)
44

55
The HTML `<strong>` tag implemented in ruby.
66

docs/components/table.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# matestack core component: Table
22

3-
Show [specs](../../spec/usage/components/table_spec.rb)
3+
Show [specs](/spec/usage/components/table_spec.rb)
44

55
Use tables to implement `<table>`, `<tr>`, `<th>` and `<td>`-tags.
66

docs/components/transition.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# matestack core component: Transition
22

3-
Show [specs](../../spec/usage/components/transition_spec.rb)
3+
Show [specs](/spec/usage/components/transition_spec.rb)
44

55
## Parameters
66

77
Except for `id` and `class`, the transition component can handle additional parameters:
88

99
### Path
1010

11-
As the name suggests, the `options[:path]` expects a path within our application. If you want to rout to a link outside our application, use the [link component](../link.md)
11+
As the name suggests, the `options[:path]` expects a path within our application. If you want to rout to a link outside our application, use the [link component](/docs/components/link.md)
1212

1313
```ruby
1414
transition path: :page1_path do

docs/components/video.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# matestack core component: Video
22

3-
Show [specs](../../spec/usage/components/video_spec.rb)
3+
Show [specs](/spec/usage/components/video_spec.rb)
44

55
The HTML video tag implemented in ruby.
66

0 commit comments

Comments
 (0)