2.5.24 • Published 1 day ago

@roadiehq/backstage-plugin-home-markdown v2.5.24

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 day ago

Markdown Home page plugin

A React component that renders a markdown file from GitHub as a Homepage component. You'll need to log in to GitHub to be able to fetch the markdown. You can configure the plugin to point to a remote markdown file in GitHub and it will fetch that markdown file and render it inside a card component. It fetches on every render, but it caches based on the etag that gets returned by the GitHub api.

For the resources (links & images) currently you should use publicly available absolute urls. For example: Make sure you use raw in the url instad of blob if you copy and paste from the browser.

- ![](./docs/home-page-markdown.png)
+ ![](https://github.com/RoadieHQ/roadie-backstage-plugins/raw/SC-7064-add-markdown-home-plugin/plugins/home/backstage-plugin-home-markdown/docs/home-page-markdown.png)

NB: Images hosted in private repositories in GitHub will not render as the react-markdown library used under the hood does not support authenticated requests.

Preview

npm.io

Setup

If you didn't set up the HomePage plugin you can see the official documentation about it here. You'll need to have it setup to be able to include this plugin. Add the following componenet to your HomePage.tsx file. The HomePageMarkdown props are the following type.

yarn add @roadiehq/backstage-plugin-home-markdown
export type MarkdownContentProps = {
  owner: string;
  repo: string;
  path: string;
  branch?: string;
};
// packages/app/src/components/home/HomePage.tsx
import { HomePageMarkdown } from '@roadiehq/backstage-plugin-home-markdown';

export const HomePage = () => {
    return (
...
    <Grid item xs={12} md={6}>
        <HomePageMarkdown
            title="Neeews!"
            owner="RoadieHQ"
            repo="roadie-backstage-plugins"
            path=".backstage/README.md"
        />
    </Grid>
...
);
};

Please note that the workflow status badge feature in GitHub will not work with the markdown plugin.

2.5.24

1 day ago

2.5.23

1 month ago

2.5.22

2 months ago

2.5.21

2 months ago

2.5.20

2 months ago

2.5.14

9 months ago

2.5.15

7 months ago

2.5.16

6 months ago

2.5.17

5 months ago

2.5.13

10 months ago

2.5.12

11 months ago

2.5.10

11 months ago

2.5.11

11 months ago

2.5.6

1 year ago

2.5.8

1 year ago

2.5.7

1 year ago

2.5.9

1 year ago

2.5.4

1 year ago

2.5.3

1 year ago

2.5.5

1 year ago

2.3.0

1 year ago

2.5.0

1 year ago

2.4.0

1 year ago

2.3.1

1 year ago

2.5.2

1 year ago

2.5.1

1 year ago

2.2.1

1 year ago

2.2.0

2 years ago

2.2.3

1 year ago

2.2.2

1 year ago

2.0.7

2 years ago

2.1.0

2 years ago

2.0.3

2 years ago

2.0.5

2 years ago

2.0.4

2 years ago

2.0.6

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.3.0

2 years ago

1.2.1

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago