Skip to content

Commit

Permalink
Merge branch 'master' into dynamodb-issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jinlintt authored Sep 27, 2023
2 parents c6c2bca + f95d1ae commit f633e56
Show file tree
Hide file tree
Showing 15 changed files with 174 additions and 111 deletions.
30 changes: 10 additions & 20 deletions docs-website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,11 @@ module.exports = {
organizationName: "datahub-project", // Usually your GitHub org/user name.
projectName: "datahub", // Usually your repo name.
staticDirectories: ["static", "genStatic"],
stylesheets: [
"https://fonts.googleapis.com/css2?family=Manrope:wght@400;600&display=swap",
],
stylesheets: ["https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700&display=swap"],
noIndex: isSaas,
customFields: {
isSaas: isSaas,
markpromptProjectKey: process.env.DOCUSAURUS_MARKPROMPT_PROJECT_KEY || 'IeF3CUFCUQWuouZ8MP5Np9nES52QAtaA',
markpromptProjectKey: process.env.DOCUSAURUS_MARKPROMPT_PROJECT_KEY || "IeF3CUFCUQWuouZ8MP5Np9nES52QAtaA",
},
themeConfig: {
...(!isSaas && {
Expand All @@ -35,12 +33,8 @@ module.exports = {
title: null,
logo: {
alt: "DataHub Logo",
src: `img/${
isSaas ? "acryl" : "datahub"
}-logo-color-light-horizontal.svg`,
srcDark: `img/${
isSaas ? "acryl" : "datahub"
}-logo-color-dark-horizontal.svg`,
src: `img/${isSaas ? "acryl" : "datahub"}-logo-color-light-horizontal.svg`,
srcDark: `img/${isSaas ? "acryl" : "datahub"}-logo-color-dark-horizontal.svg`,
},
items: [
{
Expand All @@ -50,7 +44,8 @@ module.exports = {
position: "right",
},
{
href: "/integrations",
to: "/integrations",
activeBasePath: "integrations",
label: "Integrations",
position: "right",
},
Expand All @@ -70,8 +65,8 @@ module.exports = {
position: "right",
},
{
type: 'docsVersionDropdown',
position: 'right',
type: "docsVersionDropdown",
position: "right",
dropdownActiveClassDisabled: true,
},
{
Expand Down Expand Up @@ -201,9 +196,7 @@ module.exports = {
blog: false,
theme: {
customCss: [
isSaas
? require.resolve("./src/styles/acryl.scss")
: require.resolve("./src/styles/datahub.scss"),
isSaas ? require.resolve("./src/styles/acryl.scss") : require.resolve("./src/styles/datahub.scss"),
require.resolve("./src/styles/global.scss"),
require.resolve("./src/styles/sphinx.scss"),
require.resolve("./src/styles/config-table.scss"),
Expand All @@ -217,10 +210,7 @@ module.exports = {
],
],
plugins: [
[
"@docusaurus/plugin-ideal-image",
{ quality: 100, sizes: [320, 640, 1280, 1440, 1600] },
],
["@docusaurus/plugin-ideal-image", { quality: 100, sizes: [320, 640, 1280, 1440, 1600] }],
"docusaurus-plugin-sass",
[
"docusaurus-graphql-plugin",
Expand Down
2 changes: 1 addition & 1 deletion docs-website/src/components/Feedback/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@
}

.feedbackText {
font-family: var(--ifm-font-family-base);
width: 100%;
border: var(--ifm-hr-border-color) 1px solid;
border-radius: 0.4rem;
padding: 0.4rem;
font-family: "Manrope", sans-serif;
}

.feedbackButton {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,6 @@ button {
padding-left: 1.5714286em;
}
.MarkpromptAnswer ol > li::marker {
font-weight: 400;
color: var(--markprompt-foreground);
}
.MarkpromptAnswer ul > li::marker {
Expand Down Expand Up @@ -454,7 +453,6 @@ button {
background-color: var(--markprompt-muted);
border: 1px solid var(--markprompt-border);
overflow-x: auto;
font-weight: 400;
font-size: 0.8571429em;
line-height: 1.6666667;
margin-top: 1.6666667em;
Expand Down
23 changes: 23 additions & 0 deletions docs-website/src/pages/_components/Hero/hero.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,26 @@
margin-right: 0.5rem;
}
}

.quickstartContent {
text-align: center;
padding: 2rem 0;
height: 100%;
margin: 2rem 0;
background: #34394d;
border-radius: var(--ifm-card-border-radius);
}

.quickstartTitle {
color: #fafafa;
}

.quickstartSubtitle {
font-size: 1.1rem;
color: gray;
}

.quickstartCodeblock {
text-align: left;
padding: 0 20vh;
}
13 changes: 6 additions & 7 deletions docs-website/src/pages/_components/Hero/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,11 @@ const Hero = ({}) => {
complexity of your data ecosystem.
</p>
<p className="hero__subtitle">
Built with ❤️ by{" "}
<img src="https://datahubproject.io/img/acryl-logo-light-mark.png" style={{ "vertical-align": "text-top;" }} width="25" />{" "}
Built with ❤️ by <img src={useBaseUrl("/img/acryl-logo-transparent-mark.svg")} width="25" />{" "}
<a href="https://acryldata.io" target="blank" rel="noopener noreferrer">
Acryl Data
</a>{" "}
and <img src="https://datahubproject.io/img/LI-In-Bug.png" width="25" /> LinkedIn.
and <img src={useBaseUrl("img/LI-In-Bug.png")} width="25" /> LinkedIn.
</p>
<Link className="button button--primary button--md" to={useBaseUrl("docs/")}>
Get Started →
Expand All @@ -51,10 +50,10 @@ const Hero = ({}) => {
</div>
<CardCTAs />
<Image className="hero__image" img={require(`/img/diagrams/datahub-flow-diagram-${colorMode}.png`)} alt="DataHub Flow Diagram" />
<div className="quickstart__content">
<h1 className="quickstart__title">Get Started Now</h1>
<p className="quickstart__subtitle">Run the following command to get started with DataHub.</p>
<div className="quickstart__codeblock">
<div className={styles.quickstartContent}>
<h1 className={styles.quickstartTitle}>Get Started Now</h1>
<p className={styles.quickstartSubtitle}>Run the following command to get started with DataHub.</p>
<div className={styles.quickstartCodeblock}>
<CodeBlock className={"language-shell"}>
python3 -m pip install --upgrade pip wheel setuptools <br />
python3 -m pip install --upgrade acryl-datahub <br />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
.sectionTitle {
font-size: 2.5rem;
margin-bottom: 3rem;
font-weight: normal;
text-align: center;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
}

.searchResultItemHeading {
font-weight: 400;
margin-bottom: 0;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
display: block;
margin-bottom: 0.25rem;
}
strong {
font-weight: 600;
}
span {
font-size: 0.875rem;
line-height: 1.25em;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const GuideList = ({ title, content, seeMoreLink }) =>
content?.length > 0 ? (
<div style={{ padding: "2vh 0" }}>
<div className="container">
<h2 style={{ fontWeight: "normal" }}>{title}</h2>
<h2>{title}</h2>
<div className="row row--no-gutters">
{content.map((props, idx) => (
<ListItem key={idx} {...props} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
display: block;
margin-bottom: 0.25rem;
}
strong {
font-weight: 600;
}

span {
font-size: 0.875rem;
line-height: 1.25em;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@
}

.searchResultItemHeading {
font-weight: 400;
margin-bottom: 0;
}

Expand Down
3 changes: 3 additions & 0 deletions docs-website/src/styles/acryl.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@
--ifm-color-primary-light: #13beb0;
--ifm-color-primary-lighter: #14c7b8;
--ifm-color-primary-lightest: #16e1d0;

// Custom
--ifm-color-primary-opaque: rgba(17, 173, 160, 0.1);
}
2 changes: 2 additions & 0 deletions docs-website/src/styles/datahub.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@
--ifm-color-primary-light: #349dff;
--ifm-color-primary-lighter: #42a4ff;
--ifm-color-primary-lightest: #6cb8ff;

--ifm-color-primary-opaque: rgba(24, 144, 255, 0.1);
}
Loading

0 comments on commit f633e56

Please sign in to comment.