mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-26 01:18:20 +00:00
fix(docs): various fixes and additions (#2609)
This commit is contained in:
parent
1e0b67ce56
commit
f2580f7bd7
18
README.md
18
README.md
@ -6,14 +6,16 @@ import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
|
||||
export const Logo = (props) => {
|
||||
const siteConfig = useDocusaurusContext().siteConfig;
|
||||
return (
|
||||
<ThemedImage
|
||||
alt="DataHub Logo"
|
||||
sources={{
|
||||
light: useBaseUrl(siteConfig.themeConfig.navbar.logo.src),
|
||||
dark: useBaseUrl(siteConfig.themeConfig.navbar.logo.srcDark),
|
||||
}}
|
||||
{...props}
|
||||
/>
|
||||
<div style={{display: "flex"}}>
|
||||
<ThemedImage
|
||||
alt="DataHub Logo"
|
||||
sources={{
|
||||
light: useBaseUrl(siteConfig.themeConfig.navbar.logo.src),
|
||||
dark: useBaseUrl(siteConfig.themeConfig.navbar.logo.srcDark),
|
||||
}}
|
||||
{...props}
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
};
|
||||
|
||||
|
||||
@ -33,6 +33,11 @@ module.exports = {
|
||||
label: "Demo",
|
||||
position: "right",
|
||||
},
|
||||
{
|
||||
to: "docs/saas",
|
||||
label: "SaaS",
|
||||
position: "right",
|
||||
},
|
||||
{
|
||||
href: "https://github.com/linkedin/datahub",
|
||||
label: "GitHub",
|
||||
|
||||
@ -101,6 +101,7 @@ const hardcoded_titles = {
|
||||
"README.md": "Introduction",
|
||||
"docs/demo.md": "Demo",
|
||||
};
|
||||
const hardcoded_hide_title = ["README.md"];
|
||||
|
||||
const hardcoded_descriptions = {
|
||||
// Only applied if title is also overridden.
|
||||
@ -132,6 +133,9 @@ function markdown_guess_title(
|
||||
if (filepath in hardcoded_descriptions) {
|
||||
contents.data.description = hardcoded_descriptions[filepath];
|
||||
}
|
||||
if (filepath in hardcoded_hide_title) {
|
||||
contents.data.hide_title = true;
|
||||
}
|
||||
} else {
|
||||
// Find first h1 header and use it as the title.
|
||||
const headers = contents.content.match(/^# (.+)$/gm);
|
||||
|
||||
@ -37,6 +37,7 @@ module.exports = {
|
||||
"docs/roadmap",
|
||||
"docs/CONTRIBUTING",
|
||||
"docs/demo",
|
||||
"docs/saas",
|
||||
],
|
||||
"Getting Started": [
|
||||
// Serves as user guides.
|
||||
|
||||
@ -4,7 +4,7 @@ We have a hosted demo environment available, kindly provided by [Acryl Data](htt
|
||||
|
||||
<p>
|
||||
<a
|
||||
class='button button--primary button--lg'
|
||||
className='button button--primary button--lg'
|
||||
href="https://demo.datahubproject.io/">
|
||||
Check out the demo
|
||||
</a>
|
||||
|
||||
12
docs/saas.md
Normal file
12
docs/saas.md
Normal file
@ -0,0 +1,12 @@
|
||||
# DataHub SaaS
|
||||
|
||||
Sign up for fully managed, hassle-free and secure SaaS service for DataHub, provided by [Acryl Data](https://www.acryl.io/).
|
||||
|
||||
<p>
|
||||
<a
|
||||
className='button button--primary button--lg'
|
||||
href="https://share.hsforms.com/1X48xpOymQh6ZnV2QSoY5hA8nx3h">
|
||||
Sign up
|
||||
</a>
|
||||
</p>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user