Skip to content

Commit

Permalink
chore: show all posts in blog (vs only recent) (#758)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhamzeh authored Aug 28, 2024
1 parent 2399bec commit 6062467
Show file tree
Hide file tree
Showing 7 changed files with 3,056 additions and 1,647 deletions.
2 changes: 2 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ updates:
ignore:
# Ignore updates to webpack as it has breaking changes
- dependency-name: "@svgr/webpack"
# Ignore updates to webpack as it has breaking changes that break the build
- dependency-name: "eslint"
groups:
dependencies:
dependency-type: "production"
Expand Down
4 changes: 4 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,10 @@ import dev.openfga.sdk.api.configuration.ClientConfiguration;`,
showLastUpdateAuthor: false,
editUrl: 'https://github.com/openfga/openfga.dev/edit/main/',
},
blog: {
blogSidebarTitle: 'All posts',
blogSidebarCount: 'ALL',
},
theme: {
customCss: [path.resolve('static/css/openfga.css'), path.resolve('src/css/custom.css')],
},
Expand Down
4,667 changes: 3,034 additions & 1,633 deletions package-lock.json

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
"format:fix": "prettier --write src/**"
},
"dependencies": {
"@docusaurus/core": "3.5.1",
"@docusaurus/plugin-client-redirects": "3.5.1",
"@docusaurus/preset-classic": "3.5.1",
"@docusaurus/core": "3.5.2",
"@docusaurus/plugin-client-redirects": "3.5.2",
"@docusaurus/preset-classic": "3.5.2",
"@easyops-cn/docusaurus-search-local": "0.44.5",
"@lottiefiles/react-lottie-player": "3.5.4",
"@openfga/frontend-utils": "^0.2.0-beta.9",
"@openfga/frontend-utils": "^0.2.0-beta.10",
"@openfga/sdk": "^0.6.2",
"@openfga/syntax-transformer": "^0.2.0-beta.19",
"assert-never": "1.3.0",
Expand All @@ -42,21 +42,21 @@
"swagger-ui-react": "5.17.14"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "3.4.0",
"@docusaurus/module-type-aliases": "3.5.2",
"@tsconfig/docusaurus": "2.0.3",
"@types/prismjs": "1.26.4",
"@types/react": "18.3.3",
"@types/react": "18.3.4",
"@types/react-router-dom": "5.3.3",
"@types/sanitize-html": "2.11.0",
"@typescript-eslint/eslint-plugin": "7.13.1",
"@typescript-eslint/parser": "7.13.1",
"@types/sanitize-html": "2.13.0",
"@typescript-eslint/eslint-plugin": "8.2.0",
"@typescript-eslint/parser": "8.2.0",
"docusaurus-plugin-module-alias": "0.0.2",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-react": "7.34.2",
"husky": "9.0.11",
"prettier": "3.3.2",
"typescript": "5.4.5"
"eslint-plugin-react": "7.35.0",
"husky": "9.1.5",
"prettier": "3.3.3",
"typescript": "5.5.4"
},
"overrides": {
"gauge": "^5.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/pages/api/service.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const ApiService = () => {
<Layout title="Open FGA API Explorer">
<BrowserOnly fallback={<div>Loading...</div>}>
{() => {
// eslint-disable-next-line @typescript-eslint/no-var-requires
// eslint-disable-next-line @typescript-eslint/no-require-imports
const { SwaggerUI } = require('../../components/SwaggerUI/swagger-ui');
return <SwaggerUI apiDocsBasePath={apiDocsBasePath} />;
}}
Expand Down
1 change: 1 addition & 0 deletions src/theme/NavbarItem/NavbarNavLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export default function NavbarNavLink({
};
setGithubStars(newCachedGithubStars);
sessionStorage.setItem(GITHUB_STARS_SESSION_STORAGE_NAME, JSON.stringify(newCachedGithubStars));
// eslint-disable-next-line @typescript-eslint/no-unused-vars
} catch (err) {
// try to use old cache if available (even if it is out of date)
setGithubStars(cachedGithubStars || null);
Expand Down
1 change: 1 addition & 0 deletions src/theme/prism-include-languages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export default function prismIncludeLanguages(PrismObject: typeof PrismNamespace
globalThis.Prism = PrismObject;

additionalLanguages.forEach((lang) => {
// eslint-disable-next-line @typescript-eslint/no-require-imports
require(`prismjs/components/prism-${lang}`);
});

Expand Down

0 comments on commit 6062467

Please sign in to comment.