microsite-next: Add experimental microsite with CI workflow

Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
Johan Haals
2022-12-12 15:32:06 +01:00
parent a48cfaa653
commit 8fd7c81594
15 changed files with 11055 additions and 9 deletions
+5
View File
@@ -0,0 +1,5 @@
# Build output
build
i18n
.docusaurus
+1
View File
@@ -0,0 +1 @@
.docusaurus
+8
View File
@@ -0,0 +1,8 @@
---
id: init
title: Init
# prettier-ignore
description: This will be replaced by the docs
---
TBD
+131
View File
@@ -0,0 +1,131 @@
/*
* Copyright 2022 The Backstage Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
module.exports = {
title: 'Backstage Software Catalog and Developer Platform',
tagline: 'An open platform for building developer portals',
url: 'https://backstage.io',
baseUrl: '/',
organizationName: 'Spotify',
projectName: 'backstage',
scripts: [
'https://buttons.github.io/buttons.js',
'https://unpkg.com/medium-zoom@1.0.6/dist/medium-zoom.min.js',
'/js/medium-zoom.js',
'/js/dismissable-banner.js',
'/js/scroll-nav-to-view-in-docs.js',
],
stylesheets: [
'https://fonts.googleapis.com/css?family=IBM+Plex+Mono:500,700&display=swap',
],
favicon: 'img/favicon.ico',
customFields: {
fossWebsite: 'https://spotify.github.io/',
repoUrl: 'https://github.com/backstage/backstage',
},
onBrokenLinks: 'log',
onBrokenMarkdownLinks: 'log',
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
showLastUpdateAuthor: true,
showLastUpdateTime: true,
editUrl: 'https://github.com/backstage/backstage/edit/master/docs/',
path: 'docs',
sidebarPath: 'sidebars.json',
},
blog: {
path: '../microsite/blog',
},
theme: {
customCss: 'src/css/customTheme.css',
},
gtag: {
trackingID: 'G-KSEVGGNCJW',
},
},
],
],
plugins: [],
themeConfig: {
navbar: {
title: 'Backstage Software Catalog and Developer Platform',
items: [
{
href: 'https://github.com/backstage/backstage',
label: 'GitHub',
position: 'left',
},
{
to: 'docs/overview/what-is-backstage',
label: 'Docs',
position: 'left',
},
{
to: '/plugins',
label: 'Plugins',
position: 'left',
},
{
to: '/blog',
label: 'Blog',
position: 'left',
},
{
to: 'docs/releases/v1.8.0',
label: 'Releases',
position: 'left',
},
{
to: '/demos',
label: 'Demos',
position: 'left',
},
{
to: '/community',
label: 'Community',
position: 'left',
},
],
},
image: 'img/sharing-opengraph.png',
footer: {
links: [
{
title: 'Community',
items: [
{
label: 'Twitter',
to: 'https://twitter.com/SpotifyEng',
},
],
},
],
copyright:
'Copyright © 2022 Backstage Project Authors. All rights reserved. The Linux Foundation has registered trademarks and uses trademarks. For a list of trademarks of The Linux Foundation, please see our Trademark Usage page: https://www.linuxfoundation.org/trademark-usage',
logo: {
src: 'img/android-chrome-192x192.png',
},
},
algolia: {
appId: 'AZYC4ZFNTN',
apiKey: '7dbd2089b0d445ee0d87db71abfc794f',
indexName: 'backstage',
searchParameters: {},
},
},
};
+33
View File
@@ -0,0 +1,33 @@
{
"version": "0.0.0",
"name": "backstage-microsite",
"license": "Apache-2.0",
"private": true,
"scripts": {
"examples": "docusaurus-examples",
"start": "docusaurus start",
"build": "docusaurus build",
"prettier:check": "prettier --check .",
"publish-gh-pages": "docusaurus-publish",
"write-translations": "docusaurus-write-translations",
"version": "docusaurus-version",
"rename-version": "docusaurus-rename-version",
"verify:sidebars": "node ./scripts/verify-sidebars",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"docusaurus": "docusaurus"
},
"devDependencies": {
"@spotify/prettier-config": "^14.0.0",
"js-yaml": "^4.1.0",
"prettier": "^2.6.2"
},
"prettier": "@spotify/prettier-config",
"dependencies": {
"@docusaurus/core": "2.2.0",
"@docusaurus/preset-classic": "2.2.0",
"clsx": "^1.1.1",
"react": "^17.0.2",
"react-dom": "^17.0.2"
}
}
+1
View File
@@ -0,0 +1 @@
{}
+9
View File
@@ -0,0 +1,9 @@
:root {
--ifm-color-primary-lightest: #66d2bf;
--ifm-color-primary-lighter: #4acab3;
--ifm-color-primary-light: #40c8af;
--ifm-color-primary: #36baa2;
--ifm-color-primary-dark: #31a792;
--ifm-color-primary-darker: #2e9e8a;
--ifm-color-primary-darkest: #268271;
}
+11
View File
@@ -0,0 +1,11 @@
import Layout from '@theme/Layout';
import React from 'react';
function Index() {
return (
<Layout>
<h1>HELLO</h1>
</Layout>
);
}
export default Index;
+1
View File
@@ -0,0 +1 @@
../microsite/static
File diff suppressed because it is too large Load Diff