Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Dec 31, 2024
1 parent 8dd7bf6 commit b167c2d
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 34 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ ENV NODE_OPTIONS=--openssl-legacy-provider
WORKDIR /app
COPY . .
RUN npm install
RUN npm run build
EXPOSE 80
CMD ["npm", "run", "serve", "--", "--build", "--port", "80", "--host", "0.0.0.0"]
CMD ["npm", "run", "serve", "--", "--port", "80", "--host", "0.0.0.0"]
32 changes: 25 additions & 7 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,39 @@
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
// `@type` JSDoc annotations allow editor autocompletion and type checking
// (when paired with `@ts-check`).
// There are various equivalent ways to declare your Docusaurus config.
// See: https://docusaurus.io/docs/api/docusaurus-config

import {themes as prismThemes} from 'prism-react-renderer';

/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'PSX',
tagline: 'A PHP framework and set of components to build fully typed REST APIs.',
favicon: 'img/favicon.ico',

// Set the production url of your site here
url: 'https://phpsx.org',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',

// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'apioo', // Usually your GitHub org/user name.
projectName: 'psx', // Usually your repo name.

onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',

// Even if you don't use internationalization, you can use this field to set
// useful metadata like html lang. For example, if your site is Chinese, you
// may want to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'en',
locales: ['en'],
},

presets: [
[
'classic',
Expand All @@ -23,12 +42,11 @@ const config = {
docs: {
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl: 'https://github.com/apioo/psx-website/edit/main/',
},
blog: {
showReadingTime: true,
// Please change this to your repo.
editUrl: 'https://github.com/apioo/psx-website/edit/main/blog/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
Expand Down Expand Up @@ -181,4 +199,4 @@ const config = {
}),
};

module.exports = config;
export default config;
18 changes: 0 additions & 18 deletions nginx/default.conf

This file was deleted.

11 changes: 9 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 11 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "website",
"name": "psx",
"version": "0.0.0",
"private": true,
"scripts": {
Expand All @@ -23,16 +23,23 @@
"react-dom": "^18.0.0",
"react-icons": "^5.0.0"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "^3.4.0",
"@docusaurus/types": "^3.4.0"
},
"browserslist": {
"production": [
">0.5%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
"last 3 chrome version",
"last 3 firefox version",
"last 5 safari version"
]
},
"engines": {
"node": ">=18.0"
}
}
6 changes: 4 additions & 2 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@ const sidebars = {
// But you can create a sidebar manually
/*
tutorialSidebar: [
'intro',
'hello',
{
type: 'category',
label: 'Tutorial',
items: ['hello'],
items: ['tutorial-basics/create-a-document'],
},
],
*/
};

module.exports = sidebars;
export default sidebars;

0 comments on commit b167c2d

Please sign in to comment.