Skip to content

Commit

Permalink
feat: Create a subdirectory structure (#227)
Browse files Browse the repository at this point in the history
* Update config to move course to /learn

* Update the path for the course cards

* Remove comment
  • Loading branch information
BekahHW authored Jun 14, 2024
1 parent c042f88 commit 20741ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
13 changes: 3 additions & 10 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ const config = {
favicon: 'img/favicon.ico',

// Set the production url of your site here
url: 'https://intro.opensauced.pizza',
url: 'https://sauced-intro.netlify.app/',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/',
baseUrl: '/learn/',

// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
Expand All @@ -43,16 +43,9 @@ const config = {
docs: {
sidebarPath: './sidebars.js',
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/open-sauced/intro',
},
blog: {
showReadingTime: true,
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/open-sauced/intro',
routeBasePath: '/',
},
theme: {
customCss: './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 @@ -28,7 +28,7 @@ export default function Home() {
<div className={styles.cardContent}>
<h3>Intro to Open Source Course</h3>
<p>This course is designed to equip you with the skills and knowledge you need to contribute to open source projects. It offers engaging exercises to help you begin your journey towards becoming a successful contributor, and even provides an opportunity to get your first pull request merged.</p>
<Link className={styles.cardLink} to="/docs/intro-to-oss">
<Link className={styles.cardLink} to="/intro-to-oss">
Start the Intro to Open Source Course
</Link>
</div>
Expand All @@ -37,7 +37,7 @@ export default function Home() {
<div className={styles.cardContent}>
<h3>Becoming a Maintainer</h3>
<p>This course is designed to aid people who are interested in becoming open source project maintainers. It guides you through maintainers' best practices and provides resources and tools that help maintainers perform their tasks. This course is equipped with a tutorial for you to get practical.</p>
<Link className={styles.cardLink} to="/docs/becoming-a-maintainer">
<Link className={styles.cardLink} to="/becoming-a-maintainer">
Start the Becoming a Maintainer Course
</Link>
</div>
Expand Down

0 comments on commit 20741ca

Please sign in to comment.