Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Commit

Permalink
Merge pull request #190 from data-provider/release
Browse files Browse the repository at this point in the history
Deprecation notice
  • Loading branch information
javierbrea authored Oct 28, 2023
2 parents 972df30 + ff2bf3f commit 030a69a
Show file tree
Hide file tree
Showing 10 changed files with 1,874 additions and 2,182 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
with:
node-version: "16.13.1"
- name: Cache node modules
uses: actions/cache@v2
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.15.0
16.18.1
10 changes: 9 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ module.exports = {
defaultLanguage: "javascript",
additionalLanguages: ["bash", "json"],
},
announcementBar: {
id: "deprecation-notice",
content:
'<div class="deprecation-notice"><b>Important Notice: Project Discontinuation</b></br>We regret to inform you that this project is no longer maintained. For an alternative solution, consider using <a href="https://tanstack.com/query" target="_blank" rel="noopener noreferrer">React Query</a></div>',
backgroundColor: "#FCCB01",
textColor: "#000000",
isCloseable: false,
},
navbar: {
hideOnScroll: true,
style: "dark",
Expand Down Expand Up @@ -150,7 +158,7 @@ module.exports = {
],
},
],
copyright: "Copyright © 2019-2022 Javier Brea",
copyright: "Copyright © 2019-2023 Javier Brea",
logo: {
alt: "Data Provider logo",
src: "img/logo_white.svg",
Expand Down
3,951 changes: 1,836 additions & 2,115 deletions package-lock.json

Large diffs are not rendered by default.

27 changes: 14 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,25 @@
},
"devDependencies": {},
"dependencies": {
"@babel/eslint-parser": "7.17.0",
"@babel/preset-react": "7.16.7",
"@docusaurus/core": "2.2.0",
"@docusaurus/preset-classic": "2.2.0",
"clsx": "1.1.1",
"docusaurus-plugin-sass": "0.2.2",
"eslint": "8.14.0",
"@babel/eslint-parser": "7.19.1",
"@babel/preset-react": "7.18.6",
"@docusaurus/core": "2.4.1",
"@docusaurus/preset-classic": "2.4.1",
"clsx": "1.2.1",
"docusaurus-plugin-sass": "0.2.5",
"eslint": "8.26.0",
"eslint-config-prettier": "8.5.0",
"eslint-plugin-prettier": "4.0.0",
"eslint-plugin-react": "7.29.4",
"eslint-plugin-prettier": "4.2.1",
"eslint-plugin-react": "7.31.10",
"husky": "7.0.4",
"lint-staged": "12.4.1",
"prettier": "2.6.2",
"lint-staged": "12.5.0",
"prettier": "2.7.1",
"prop-types": "15.8.1",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-github-btn": "1.2.2",
"sass": "1.51.0"
"react-github-btn": "1.4.0",
"sass": "1.67.0",
"sass-loader": "13.3.2"
},
"lint-staged": {
"src/**/*.js": "eslint",
Expand Down
1 change: 1 addition & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"enabled": false,
"extends": [
"config:base"
],
Expand Down
9 changes: 9 additions & 0 deletions src/css/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,12 @@ html[data-theme="dark"] .Section .ActionButton.primary {
color: var(--dark);
}

div[class^='announcementBar'] {
height: auto;
}

.deprecation-notice {
padding: 10px;
font-size: 16px;
}

48 changes: 0 additions & 48 deletions src/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from "react";
import Layout from "@theme/Layout";
import CodeBlock from "@theme/CodeBlock";
import GitHubButton from "react-github-btn";
import Head from "@docusaurus/Head";

import useBaseUrl from "@docusaurus/useBaseUrl";
Expand Down Expand Up @@ -214,21 +213,6 @@ function HomeCallToAction() {
);
}

function GitHubStarButton() {
return (
<div className="github-button">
<GitHubButton
href="https://github.com/data-provider/core"
data-icon="octicon-star"
data-size="large"
aria-label="Star Data Provider on GitHub"
>
Star
</GitHubButton>
</div>
);
}

function Section({ element = "section", children, className, background = "light" }) {
const El = element;
return <El className={`Section ${className} ${background}`}>{children}</El>;
Expand Down Expand Up @@ -379,37 +363,6 @@ function Motivation({ background }) {
);
}

function Star() {
return (
<Section className="Star" background="dark">
<TwoColumns
columnOne={
<>
<Heading text="Give it a star on GitHub" />
<div className="StarLinkContainer">
<GitHubStarButton />
</div>
</>
}
columnTwo={
<>
<Heading text="Become a backer" />
<div className="StarLinkContainer">
<a
href="https://opencollective.com/data-provider"
target="_blank"
rel="noopener noreferrer"
>
<img src="https://opencollective.com/data-provider/tiers/backer.svg?avatarHeight=70" />
</a>
</div>
</>
}
/>
</Section>
);
}

const Index = () => {
const { siteConfig } = useDocusaurusContext();
return (
Expand All @@ -434,7 +387,6 @@ const Index = () => {
<Queryable background="tint" />
<EventEmitter reverse />
<Motivation background="tint" />
<Star />
</Layout>
);
};
Expand Down
4 changes: 3 additions & 1 deletion static/_redirects
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Redirect default Netlify subdomain to primary domain
https://data-provider.netlify.com/* https://www.data-provider.org/:splat 301!
https://data-provider.netlify.com/* https://data-provider.javierbrea.com/:splat 301!
https://data-provider.org/* https://data-provider.javierbrea.com/:splat 301!
https://www.data-provider.org/* https://data-provider.javierbrea.com/:splat 301!

# Redirect from docs home to intro
/docs /docs/getting-started
Expand Down
2 changes: 0 additions & 2 deletions static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,3 @@
padding-top: 40px;
padding-bottom: 40px;
}


0 comments on commit 030a69a

Please sign in to comment.