Open mdarif opened 2 years ago
Setting up actions/setup-node@v3
also didn't help, hope to get some quick help mate still getting the same error as above.
~Also having the same issue.~
You need to - uses: redkubes/docusaurus-deploy-action@v1.2
instead of v1.1
Also having the same issue.
Thanks now build is successful but right outcome still not reflecting on https://mdarif.github.io/project-management/
still getting 404 File not found.
Docusaurus Config docusaurus.config.js
:
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
const lightCodeTheme = require('prism-react-renderer/themes/github')
const darkCodeTheme = require('prism-react-renderer/themes/dracula')
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'A Dockerize MERN App',
tagline:
'A Dockerize MERN app using Github Actions to push Docker Images to Docker Hub automatically.',
url: 'https://mdarif.github.io/',
baseUrl: '/project-management/',
onBrokenLinks: 'ignore',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
deploymentBranch: 'gh-pages',
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'mdarif', // Usually your GitHub org/user name.
projectName: 'project-management', // Usually your repo name.
// Even if you don't use internalization, 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',
/** @type {import('@docusaurus/preset-classic').Options} */
({
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/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/'
},
blog: {
showReadingTime: true,
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/'
},
theme: {
customCss: require.resolve('./src/css/custom.css')
}
})
]
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
title: 'Project Management',
logo: {
alt: 'Project Management Logo',
src: 'img/logo.svg'
},
items: [
{
to: 'docs/introduction/getting-started',
position: 'left',
label: 'Getting Started'
},
{
to: 'docs/tutorials/intro',
position: 'left',
label: 'Tutorials'
},
// { to: '/blog', label: 'Blog', position: 'left' },
{
href: 'https://github.com/mdarif/project-management',
position: 'left',
label: 'GitHub'
}
]
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'Tutorial',
to: '/docs/tutorials/intro'
}
]
},
{
title: 'Community',
items: [
{
label: 'Stack Overflow',
href: 'https://stackoverflow.com/questions/tagged/docusaurus'
},
{
label: 'Discord',
href: 'https://discordapp.com/invite/docusaurus'
},
{
label: 'Twitter',
href: 'https://twitter.com/docusaurus'
}
]
},
{
title: 'More',
items: [
{
label: 'GitHub',
href: 'https://github.com/facebook/docusaurus'
}
]
}
],
copyright: `Copyright © ${new Date().getFullYear()} Mohammad Arif`
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme
}
})
}
module.exports = config
@mdarif try removing the extra slash at the end of your url
const config = { title: 'A Dockerize MERN App', tagline: 'A Dockerize MERN app using Github Actions to push Docker Images to Docker Hub automatically.', url: 'https://mdarif.github.io/',
Didn't help the below change mate...
const config = {
...
url: 'https://mdarif.github.io',
Any further pointer?
this repo will be deprecated soon, and I suggest to follow docusaurus docs on publishing to github: https://docusaurus.io/docs/deployment#deploying-to-github-pages
Hi,
Getting
Error: Minimum Node.js version not met :(
I know the culprit as shown in the log
2022-08-08T10:15:01.0704853Z [INFO] You are using Node.js v14.19.1, Requirement: Node.js >=16.14.
Probably you need to add the Setup Node step in your yml as given below in order to resolve the newer Node dependency.
Please find the attached log.