Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 7 additions & 0 deletions docs/docs/api-reference/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"label": "API reference",
"position": 50,
"link": {
"type": "generated-index"
}
}
7 changes: 7 additions & 0 deletions docs/docs/api-reference/enriched-text-input.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
sidebar_position: 1
---

# EnrichedTextInput

<!-- TODO: write content for this page -->
7 changes: 7 additions & 0 deletions docs/docs/api-reference/enriched-text.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
sidebar_position: 2
---

# EnrichedText

<!-- TODO: write content for this page -->
7 changes: 7 additions & 0 deletions docs/docs/core-functionalities/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"label": "Core functionalities",
"position": 30,
"link": {
"type": "generated-index"
}
}
7 changes: 7 additions & 0 deletions docs/docs/core-functionalities/handling-events.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
sidebar_position: 3
---

# Handling events

<!-- TODO: write content for this page -->
7 changes: 7 additions & 0 deletions docs/docs/core-functionalities/rendering-rich-text.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
sidebar_position: 2
---

# Rendering rich text

<!-- TODO: write content for this page -->
7 changes: 7 additions & 0 deletions docs/docs/core-functionalities/styling-the-input.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
sidebar_position: 1
---

# Styling the input

<!-- TODO: write content for this page -->
7 changes: 7 additions & 0 deletions docs/docs/core-functionalities/web-support.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
sidebar_position: 4
---

# Web support

<!-- TODO: write content for this page -->
7 changes: 7 additions & 0 deletions docs/docs/fundamentals/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"label": "Fundamentals",
"position": 10,
"link": {
"type": "generated-index"
}
}
7 changes: 7 additions & 0 deletions docs/docs/fundamentals/core-concepts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
sidebar_position: 3
---

# Core concepts

<!-- TODO: write content for this page -->
7 changes: 6 additions & 1 deletion docs/docs/fundamentals/getting-started.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Getting Started
---
slug: /
sidebar_position: 1
---

# Getting started

<!-- TODO: write content for this page -->
7 changes: 7 additions & 0 deletions docs/docs/fundamentals/html-format-and-supported-tags.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
sidebar_position: 4
---

# HTML format and supported tags

<!-- TODO: write content for this page -->
8 changes: 0 additions & 8 deletions docs/docs/fundamentals/intro.md

This file was deleted.

7 changes: 7 additions & 0 deletions docs/docs/fundamentals/your-first-editor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
sidebar_position: 2
---

# Your first editor

<!-- TODO: write content for this page -->
7 changes: 7 additions & 0 deletions docs/docs/guides/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"label": "Guides",
"position": 40,
"link": {
"type": "generated-index"
}
}
7 changes: 7 additions & 0 deletions docs/docs/guides/chat-input-with-images.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
sidebar_position: 1
---

# Chat input with images

<!-- TODO: write content for this page -->
7 changes: 7 additions & 0 deletions docs/docs/guides/custom-context-menu.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
sidebar_position: 4
---

# Custom context menu

<!-- TODO: write content for this page -->
6 changes: 5 additions & 1 deletion docs/docs/guides/index.md → docs/docs/guides/emojis.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Guides
---
sidebar_position: 3
---

# Emojis

<!-- TODO: write content for this page -->
7 changes: 7 additions & 0 deletions docs/docs/guides/mention-only-input.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
sidebar_position: 2
---

# Mention-only input

<!-- TODO: write content for this page -->
7 changes: 7 additions & 0 deletions docs/docs/misc/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"label": "Misc",
"position": 60,
"link": {
"type": "generated-index"
}
}
7 changes: 7 additions & 0 deletions docs/docs/misc/comparison-with-other-libraries.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
sidebar_position: 2
---

# Comparison with other libraries

<!-- TODO: write content for this page -->
7 changes: 7 additions & 0 deletions docs/docs/misc/compatibility.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
sidebar_position: 1
---

# Compatibility

<!-- TODO: write content for this page -->
7 changes: 7 additions & 0 deletions docs/docs/misc/contributing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
sidebar_position: 5
---

# Contributing

<!-- TODO: write content for this page -->
7 changes: 7 additions & 0 deletions docs/docs/misc/known-limitations.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
sidebar_position: 3
---

# Known limitations

<!-- TODO: write content for this page -->
7 changes: 7 additions & 0 deletions docs/docs/misc/roadmap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
sidebar_position: 4
---

# Roadmap

<!-- TODO: write content for this page -->
7 changes: 7 additions & 0 deletions docs/docs/rich-text-formatting/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"label": "Rich text formatting",
"position": 20,
"link": {
"type": "generated-index"
}
}
7 changes: 7 additions & 0 deletions docs/docs/rich-text-formatting/basic-styles.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
sidebar_position: 1
---

# Basic styles

<!-- TODO: write content for this page -->
7 changes: 7 additions & 0 deletions docs/docs/rich-text-formatting/inline-images.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
sidebar_position: 5
---

# Inline images

<!-- TODO: write content for this page -->
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# API Reference
---
sidebar_position: 2
---

# Links

<!-- TODO: write content for this page -->
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Installation
---
sidebar_position: 4
---

# Lists

<!-- TODO: write content for this page -->
7 changes: 7 additions & 0 deletions docs/docs/rich-text-formatting/mentions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
sidebar_position: 3
---

# Mentions

<!-- TODO: write content for this page -->
7 changes: 7 additions & 0 deletions docs/docs/rich-text-formatting/text-alignment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
sidebar_position: 6
---

# Text alignment

<!-- TODO: write content for this page -->
7 changes: 7 additions & 0 deletions docs/docs/rich-text-formatting/text-shortcuts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
sidebar_position: 7
---

# Text shortcuts

<!-- TODO: write content for this page -->
22 changes: 21 additions & 1 deletion docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,29 @@ const config = {
},
}),
],
require.resolve('@swmansion/t-rex-ui/preset'),
],

plugins: [
function transpileTRexUiTheme() {
return {
name: 'transpile-t-rex-ui-theme',
configureWebpack(_config, isServer, utils) {
return {
module: {
rules: [
{
test: /\.jsx?$/,
include:
/node_modules[\\/]@swmansion[\\/]t-rex-ui[\\/]theme[\\/]/,
use: [utils.getJSLoader({ isServer })],
},
],
},
};
},
};
},
// TODO: enable Google Tag Manager with a container id for this site.
// process.env.NODE_ENV === 'production' && [
// '@docusaurus/plugin-google-tag-manager',
Expand Down Expand Up @@ -93,7 +113,7 @@ const config = {
},
items: [
{
to: 'fundamentals/getting-started',
to: '/',
label: 'Docs',
position: 'right',
},
Expand Down
22 changes: 1 addition & 21 deletions docs/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,7 @@

/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
const sidebars = {
tutorialSidebar: [
{
type: 'category',
label: 'Fundamentals',
items: [
'fundamentals/intro',
'fundamentals/getting-started',
'fundamentals/installation',
],
},
{
type: 'category',
label: 'Guides',
items: ['guides/index'],
},
{
type: 'category',
label: 'API Reference',
items: ['api-reference/index'],
},
],
tutorialSidebar: [{ type: 'autogenerated', dirName: '.' }],
};

module.exports = sidebars;
Loading