Skip to content

Commit

Permalink
update editUrl and README
Browse files Browse the repository at this point in the history
  • Loading branch information
tiennhm-utop committed May 23, 2023
1 parent 435139e commit 93f78b2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ This command generates static content into the `build` directory and can be serv

### Deployment

If there is the first time you deploy the website, you need to update permissions for `Workflow permissions` in `Settings` tab of your repository. You must enable `Write` permission for `Workflows` section.

Using SSH:

```
Expand Down
15 changes: 8 additions & 7 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,25 @@
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');

const organizationName = "TienNHM";
const projectName = "tiennhm.github.io";

/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'TienNHM',
tagline: 'TienNHM - Middle Fullstack Web Developer',
favicon: 'img/favicon.ico',

// Set the production url of your site here
url: 'https://tiennhm.github.io',
url: `https://${organizationName}.github.io`,
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/',

// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'TienNHM', // Usually your GitHub org/user name.
projectName: 'tiennhm.github.io', // Usually your repo name.
organizationName: `${organizationName}`, // Usually your GitHub org/user name.
projectName: `${projectName}`, // Usually your repo name.
trailingSlash: false,
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
Expand All @@ -41,15 +44,13 @@ const config = {
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/',
editUrl: `https://github.com/${organizationName}/${projectName}/tree/master/docs`,
},
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/',
editUrl: `https://github.com/${organizationName}/${projectName}/tree/master/blog`,
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
Expand Down
4 changes: 2 additions & 2 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ export default function Home() {
const {siteConfig} = useDocusaurusContext();
return (
<Layout
title={`Hello from ${siteConfig.title}`}
description="Description will go into a meta tag in <head />">
title={`${siteConfig.title}`}
description="Middle Fullstack Web Developer from Viet Nam">
<HomepageHeader />
<main>
<HomepageFeatures />
Expand Down

0 comments on commit 93f78b2

Please sign in to comment.