Skip to content
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

Dynamically generate navigation #973

Merged
merged 55 commits into from
Nov 19, 2019
Merged
Show file tree
Hide file tree
Changes from 44 commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
72d4cef
Update
zarkosimic Sep 18, 2019
dff04c5
Merge remote-tracking branch 'upstream/master'
zarkosimic Sep 20, 2019
f19e8aa
Merge remote-tracking branch 'upstream/master'
zarkosimic Sep 24, 2019
1deffe2
Merge remote-tracking branch 'upstream/master'
zarkosimic Sep 25, 2019
69b33fc
Merge remote-tracking branch 'upstream/master'
zarkosimic Oct 1, 2019
ad2cbfb
Merge remote-tracking branch 'upstream/master'
zarkosimic Oct 8, 2019
9afc6b1
Merge remote-tracking branch 'upstream/master'
zarkosimic Oct 9, 2019
f969fba
Merge remote-tracking branch 'upstream/master'
zarkosimic Oct 24, 2019
5e7c452
Merge remote-tracking branch 'upstream/master'
zarkosimic Oct 25, 2019
06ba748
Merge remote-tracking branch 'upstream/master'
zarkosimic Oct 31, 2019
589fad6
initial styles
marynaKhromova Nov 6, 2019
ed1b2aa
content styles
marynaKhromova Nov 7, 2019
846f861
Docu app changes
zarkosimic Nov 7, 2019
16c0ee2
responsive styles
marynaKhromova Nov 7, 2019
31d3dfb
Merge branch 'docu-app-changes' into 853-Create-styles-for-documentation
zarkosimic Nov 8, 2019
105a474
fix for safari
marynaKhromova Nov 8, 2019
24f0bd9
Merge branch '853-Create-styles-for-documentation' of github.com:mary…
marynaKhromova Nov 8, 2019
38a191b
Merge remote-tracking branch 'upstream/master' into 853-Create-styles…
marynaKhromova Nov 8, 2019
516fae9
Linking to pages fix for prod
zarkosimic Nov 11, 2019
3337dd4
Merge branch '853-Create-styles-for-documentation' of github.com:mary…
zarkosimic Nov 11, 2019
c1efa7b
Merge branch '853-Create-styles-for-documentation' of github.com:mary…
maxmarkus Nov 11, 2019
c08542c
Internal navigation with Luigi Client working, prepared for Anchor links
maxmarkus Nov 12, 2019
b176d8d
same page anchor links are working
maxmarkus Nov 12, 2019
e353426
fix for internal relative links starting with ./
maxmarkus Nov 12, 2019
bdaa864
fix for relative raw links, cleanup
maxmarkus Nov 12, 2019
523d5cc
added custom code inside pre block and js to copy the code
maxmarkus Nov 12, 2019
a10d710
css styling
maxmarkus Nov 12, 2019
1aecf54
Merge remote-tracking branch 'upstream/master' into 919-dynamic-inter…
maxmarkus Nov 13, 2019
a68790a
update gitignore
maxmarkus Nov 13, 2019
5c35e1f
cleanup
maxmarkus Nov 13, 2019
d03b791
Merge branch '919-dynamic-internal-linking' into 962-copy-to-clipboard
maxmarkus Nov 13, 2019
3b936c8
Merge remote-tracking branch 'upstream/master' into 962-copy-to-clipb…
maxmarkus Nov 13, 2019
126ad99
added plugin for custom attributes in top level hierarchy
maxmarkus Nov 13, 2019
058b53e
added styling for quotes
maxmarkus Nov 13, 2019
9e405e5
added missing images
maxmarkus Nov 13, 2019
1dbdd90
fixed copy-clipboard image
maxmarkus Nov 13, 2019
06ef142
added icons
maxmarkus Nov 13, 2019
1ed7e0e
Merge branch '962-copy-to-clipboard' into 966-custom-md-attributes
maxmarkus Nov 13, 2019
7aed645
added missing border radius
maxmarkus Nov 13, 2019
f4f4ade
added frontmatter based navigation generation plugin
maxmarkus Nov 15, 2019
758d2d3
Merge remote-tracking branch 'upstream/master' into 961-generate-navi…
maxmarkus Nov 15, 2019
9504402
added frontmatter json data to markdown files
maxmarkus Nov 15, 2019
3c18070
Updated parser to use json with node format and updated metadata
maxmarkus Nov 18, 2019
179c952
Merge remote-tracking branch 'upstream/master' into 961-generate-navi…
maxmarkus Nov 18, 2019
85f87e7
Merge branch 'master' into 961-generate-navigation-json
zarkosimic Nov 18, 2019
74c1468
Fix category order and positioning
zarkosimic Nov 19, 2019
477d274
Merge branch '961-generate-navigation-json' of github.com:maxmarkus/l…
maxmarkus Nov 19, 2019
ce91a0a
Rename communication category to advanced
zarkosimic Nov 19, 2019
84453ce
Merge branch '961-generate-navigation-json' of github.com:maxmarkus/l…
maxmarkus Nov 19, 2019
87ca26b
move Documentation to first nav point
maxmarkus Nov 19, 2019
06b4c1a
docu adjustments
marynaKhromova Nov 19, 2019
2924988
Merge branch '961-generate-navigation-json' of github.com:maxmarkus/l…
marynaKhromova Nov 19, 2019
47d998e
Merge branch '961-generate-navigation-json' of github.com:maxmarkus/l…
maxmarkus Nov 19, 2019
edca3e3
write generated nav also to public folder since it is run after copyi…
maxmarkus Nov 19, 2019
4d581b0
improve copy step
maxmarkus Nov 19, 2019
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
15 changes: 15 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
<!-- meta
{
"node": {
"label": "Overview",
"category": {
"label": "Basics"
},
"metaData": {
"categoryPosition": 1,
"position": 0
}
}
}
meta -->

# Luigi Documentation

If you are new to Luigi, read the [Getting started guide](getting-started.md) to learn more about its structure and key features.
Expand Down
15 changes: 15 additions & 0 deletions docs/application-setup.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
<!-- meta
{
"node": {
"label": "Installation",
"category": {
"label": "Luigi Core"
},
"metaData": {
"categoryPosition": 2,
"position": 1
}
}
}
meta -->

# Application setup

Prior to start developing with Luigi, you need to set up your application. This document shows you how to set up a web application using the Luigi micro frontend framework.
Expand Down
15 changes: 15 additions & 0 deletions docs/authorization-configuration.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
<!-- meta
{
"node": {
"label": "Authorization",
"category": {
"label": "Luigi Core"
},
"metaData": {
"categoryPosition": 2,
"position": 6
}
}
}
meta -->

# Authorization configuration

To configure authorization in Luigi, go to the `auth:` section of your project's `basicConfiguration.js` file. To see how authorization works, you can also go to the [Luigi Fiddle](https://fiddle.luigi-project.io) site and configure a sample application.
Expand Down
15 changes: 15 additions & 0 deletions docs/authorization-events.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
<!-- meta
{
"node": {
"label": "Authorization events",
"category": {
"label": "Luigi Core"
},
"metaData": {
"categoryPosition": 2,
"position": 6
}
}
}
meta -->

# Authorization events

>**NOTE:** For learning and testing purposes, use the [Luigi Fiddle](https://fiddle.luigi-project.io) page where you can configure a sample Luigi application.
Expand Down
15 changes: 15 additions & 0 deletions docs/communication.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
<!-- meta
{
"node": {
"label": "Custom messages",
"category": {
"label": "Luigi Client"
},
"metaData": {
"categoryPosition": 3,
"position": 3
}
}
}
meta -->

# Communication

>**NOTE:** For learning and testing purposes, use the [Luigi Fiddle](https://fiddle.luigi-project.io) page where you can configure a sample Luigi application.
Expand Down
15 changes: 15 additions & 0 deletions docs/general-settings.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
<!-- meta
{
"node": {
"label": "General settings",
"category": {
"label": "Luigi Core"
},
"metaData": {
"categoryPosition": 2,
"position": 7
}
}
}
meta -->

# General settings

<!-- add-attribute:class:success -->
Expand Down
15 changes: 15 additions & 0 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
<!-- meta
{
"node": {
"label": "Getting started",
"category": {
"label": "Basics"
},
"metaData": {
"categoryPosition": 1,
"position": 1
}
}
}
meta -->

# Getting started

## What is Luigi?
Expand Down
15 changes: 15 additions & 0 deletions docs/lifecycle-hooks.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
<!-- meta
{
"node": {
"label": "Lifecycle hooks",
"category": {
"label": "Luigi Core"
},
"metaData": {
"categoryPosition": 2,
"position": 8
}
}
}
meta -->

# Lifecycle hooks

You can use any of the Luigi lifecycle hooks by adding additional setup to the root of the Luigi configuration object. Here is an example:
Expand Down
15 changes: 15 additions & 0 deletions docs/luigi-client-api.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
<!-- meta
{
"node": {
"label": "API",
"category": {
"label": "Luigi Client"
},
"metaData": {
"categoryPosition": 3,
"position": 2
}
}
}
meta -->

# Luigi Client API

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
Expand Down
16 changes: 16 additions & 0 deletions docs/luigi-client-setup.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
<!-- meta
{
"node": {
"label": "Client Setup",
"category": {
"label": "Luigi Client"
},
"metaData": {
"categoryPosition": 3,
"position": 2
},
"hideFromNav": true
}
}
meta -->

# Luigi Client Installation

Luigi Client contains a library that allows your application to use all features of the Luigi framework.
Expand Down
15 changes: 15 additions & 0 deletions docs/luigi-core-api.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
<!-- meta
{
"node": {
"label": "API",
"category": {
"label": "Luigi Core"
},
"metaData": {
"categoryPosition": 2,
"position": 9
}
}
}
meta -->

# Luigi Core API

## Luigi Config
Expand Down
15 changes: 15 additions & 0 deletions docs/luigi-ux-features.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
<!-- meta
{
"node": {
"label": "UI features",
"category": {
"label": "Luigi Core"
},
"metaData": {
"categoryPosition": 2,
"position": 8
}
}
}
meta -->


# Luigi UX features

Expand Down
15 changes: 15 additions & 0 deletions docs/navigation-advanced.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
<!-- meta
{
"node": {
"label": "Advanced navigation",
"category": {
"label": "Luigi Core"
},
"metaData": {
"categoryPosition": 2,
"position": 4
}
}
}
meta -->

# Advanced navigation

This document shows you how to configure the following Luigi features:
Expand Down
16 changes: 16 additions & 0 deletions docs/navigation-configuration-example.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
<!-- meta
{
"node": {
"label": "Configuration Example",
"category": {
"label": "Luigi Core"
},
"metaData": {
"categoryPosition": 2,
"position": 2
},
"hideFromNav": true
}
}
meta -->

# Navigation configuration example

This example represents a sample Luigi navigation configuration including parameters described in the [navigation parameters reference](navigation-parameters-reference.md).
Expand Down
15 changes: 15 additions & 0 deletions docs/navigation-configuration.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
<!-- meta
{
"node": {
"label": "Basic navigation",
"category": {
"label": "Luigi Core"
},
"metaData": {
"categoryPosition": 2,
"position": 2
}
}
}
meta -->

# Basic navigation configuration

Read these guides to get started with configuring your navigation:
Expand Down
15 changes: 15 additions & 0 deletions docs/navigation-parameters-reference.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
<!-- meta
{
"node": {
"label": "Routing",
"category": {
"label": "Luigi Core"
},
"metaData": {
"categoryPosition": 2,
"position": 5
}
}
}
meta -->

# Navigation parameters reference

<!-- add-attribute:class:success -->
Expand Down
1 change: 1 addition & 0 deletions website/docs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ luigi-client
public/*
static/assets
*coreStyles*
navigation-generated.json

# Debug
yarn-error.log
Expand Down
16 changes: 16 additions & 0 deletions website/docs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion website/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"cy:run": "cypress run",
"cy:open": "cypress open",
"mock:develop-plugins": "NODE_ENV=debug node -r esm scripts/markdown.unified-preview.js",
"mock:develop-plugins:watch": "NODE_ENV=debug nodemon -r esm scripts/markdown.unified-preview.js"
"mock:develop-plugins:watch": "NODE_ENV=debug nodemon --ignore 'static/**' -r esm scripts/markdown.unified-preview.js"
},
"dependencies": {
"@kyma-project/luigi-client": "^0.6.0",
Expand Down Expand Up @@ -44,6 +44,7 @@
"css-loader": "^3.2.0",
"esm": "^3.2.25",
"fiori-fundamentals": "^1.7.1",
"lodash.orderby": "^4.6.0",
"mini-css-extract-plugin": "^0.8.0",
"node-sass": "^4.12.0",
"npm-run-all": "^4.1.5",
Expand All @@ -55,6 +56,7 @@
"rehype-slug": "^2.0.3",
"rehype-stringify": "^6.0.0",
"remark": "^11.0.1",
"remark-frontmatter": "^1.3.2",
"remark-html": "^10.0.0",
"remark-parse": "^7.0.1",
"remark-preset-lint-markdown-style-guide": "^2.1.3",
Expand Down
7 changes: 5 additions & 2 deletions website/docs/scripts/markdown.unified-preview.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import { MarkdownSvc } from '../src/services/markdown.service';
import { readdirSync, readFileSync } from 'fs';
import { readFileSync } from 'fs';

const filesToProcess = [
// 'plain.md',
// 'links.md',
// 'link.md',
// 'codeblocks.md',
'custom-attributes.md',
// 'custom-attributes.md',
'frontmatter-3.md',
'frontmatter-2.md',
'frontmatter.md'
];

filesToProcess.forEach(async (name) => {
Expand Down
Loading