Skip to content

Commit 238e2bf

Browse files
authored
Merge pull request #2 from devs-in-tech/development
Build website using Docusaurus
2 parents d0978dc + 81f4a57 commit 238e2bf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+13575
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,7 @@ dist
102102

103103
# TernJS port file
104104
.tern-port
105+
106+
# Generated files
107+
.docusaurus
108+
.cache-loader

babel.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
3+
};

docs/AI/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
## Artificial Intelligence
2+
3+
Welcome to the Artificial Intelligence section of TechStackPlaybook! This folder contains a curated collection of resources, project ideas, and tutorials specifically focused on Artificial Intelligence. Whether you're a beginner or an experienced developer looking to expand your frontend skills, you'll find valuable content and guidance here.
4+
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Frontend-Web-Dev/README.md renamed to docs/Frontend-Web-Dev/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
sidebar_position: 1
3+
---
4+
15
## Frontend Web Development
26

37
Welcome to the Frontend Web Development section of TechStackPlaybook! This folder contains a curated collection of resources, project ideas, and tutorials specifically focused on frontend web development. Whether you're a beginner or an experienced developer looking to expand your frontend skills, you'll find valuable content and guidance here.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

docs/intro.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
sidebar_position: 1
3+
---
4+
5+
# Tutorial Intro
6+
7+
Let's discover **Docusaurus in less than 5 minutes**.
8+
9+
## Getting Started
10+
11+
Get started by **creating a new site**.
12+
13+
Or **try Docusaurus immediately** with **[docusaurus.new](https://docusaurus.new)**.
14+
15+
### What you'll need
16+
17+
- [Node.js](https://nodejs.org/en/download/) version 16.14 or above:
18+
- When installing Node.js, you are recommended to check all checkboxes related to dependencies.
19+
20+
## Generate a new site
21+
22+
Generate a new Docusaurus site using the **classic template**.
23+
24+
The classic template will automatically be added to your project after you run the command:
25+
26+
```bash
27+
npm init docusaurus@latest my-website classic
28+
```
29+
30+
You can type this command into Command Prompt, Powershell, Terminal, or any other integrated terminal of your code editor.
31+
32+
The command also installs all necessary dependencies you need to run Docusaurus.
33+
34+
## Start your site
35+
36+
Run the development server:
37+
38+
```bash
39+
cd my-website
40+
npm run start
41+
```
42+
43+
The `cd` command changes the directory you're working with. In order to work with your newly created Docusaurus site, you'll need to navigate the terminal there.
44+
45+
The `npm run start` command builds your website locally and serves it through a development server, ready for you to view at http://localhost:3000/.
46+
47+
Open `docs/intro.md` (this page) and edit some lines: the site **reloads automatically** and displays your changes.

docusaurus.config.js

Lines changed: 164 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,164 @@
1+
// @ts-check
2+
// Note: type annotations allow type checking and IDEs autocompletion
3+
4+
const lightCodeTheme = require('prism-react-renderer/themes/github');
5+
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
6+
7+
/** @type {import('@docusaurus/types').Config} */
8+
const config = {
9+
title: 'TechStackPlaybook',
10+
tagline: 'Technology is super cool!',
11+
favicon: 'img/favicon.ico',
12+
13+
// Set the production url of your site here
14+
url: 'https://devsintech.netlify.app/',
15+
// Set the /<baseUrl>/ pathname under which your site is served
16+
// For GitHub pages deployment, it is often '/<projectName>/'
17+
// baseUrl: '/techstackplaybook/',
18+
baseUrl: '/',
19+
20+
// GitHub pages deployment config.
21+
// If you aren't using GitHub pages, you don't need these.
22+
organizationName: 'DevsInTech', // Usually your GitHub org/user name.
23+
projectName: 'TechStackPlaybook', // Usually your repo name.
24+
25+
onBrokenLinks: 'throw',
26+
onBrokenMarkdownLinks: 'warn',
27+
28+
// Even if you don't use internalization, you can use this field to set useful
29+
// metadata like html lang. For example, if your site is Chinese, you may want
30+
// to replace "en" with "zh-Hans".
31+
i18n: {
32+
defaultLocale: 'en',
33+
locales: ['en'],
34+
},
35+
36+
presets: [
37+
[
38+
'classic',
39+
/** @type {import('@docusaurus/preset-classic').Options} */
40+
({
41+
docs: {
42+
sidebarPath: require.resolve('./sidebars.js'),
43+
// Please change this to your repo.
44+
// Remove this to remove the "edit this page" links.
45+
editUrl:
46+
'https://github.com/devs-in-tech/TechStackPlaybook',
47+
},
48+
// blog: {
49+
// showReadingTime: true,
50+
// // Please change this to your repo.
51+
// // Remove this to remove the "edit this page" links.
52+
// editUrl:
53+
// 'https://github.com/devs-in-tech/TechStackPlaybook/tree/main/packages/create-docusaurus/templates/shared/',
54+
// },
55+
theme: {
56+
customCss: require.resolve('./src/css/custom.css'),
57+
},
58+
}),
59+
],
60+
],
61+
62+
themeConfig:
63+
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
64+
({
65+
// Replace with your project's social card
66+
image: 'img/docusaurus-social-card.jpg',
67+
navbar: {
68+
title: 'TechStackPlaybook',
69+
logo: {
70+
alt: 'TechStackPlaybook Logo',
71+
src: 'img/logo.svg',
72+
},
73+
items: [
74+
{
75+
type: 'docSidebar',
76+
sidebarId: 'resourceSidebar',
77+
position: 'left',
78+
label: 'Resources',
79+
},
80+
// { to: '/blog', label: 'Blog', position: 'left' },
81+
{
82+
href: 'https://github.com/devs-in-tech/TechStackPlaybook',
83+
label: 'GitHub',
84+
position: 'right',
85+
},
86+
],
87+
},
88+
footer: {
89+
style: 'dark',
90+
links: [
91+
{
92+
title: 'Resources',
93+
items: [
94+
{
95+
label: 'Artificial Intelligence',
96+
to: '/docs/AI',
97+
},
98+
{
99+
label: 'AR/VR',
100+
to: '/docs/AR-VR',
101+
},
102+
{
103+
label: 'Web3',
104+
to: '/docs/Web3',
105+
},
106+
{
107+
label: 'Frontend Development',
108+
to: '/docs/Frontend-Web-Dev',
109+
},
110+
{
111+
label: 'Backend Development',
112+
to: '/docs/Backend-Web-Dev',
113+
},
114+
{
115+
label: 'Cloud Computing',
116+
to: '/docs/Cloud',
117+
},
118+
{
119+
label: 'DevOps',
120+
to: '/docs/DevOps',
121+
},
122+
],
123+
},
124+
{
125+
title: 'Community',
126+
items: [
127+
{
128+
label: 'Discord',
129+
href: 'https://discord.com/invite/g7FmxB9uZp',
130+
},
131+
{
132+
label: 'Twitter',
133+
href: 'https://twitter.com/devs_in_tech',
134+
},
135+
],
136+
},
137+
{
138+
title: 'More',
139+
items: [
140+
{
141+
label: 'Website',
142+
to: 'https://devsintech.vercel.app/',
143+
},
144+
{
145+
label: 'Blog',
146+
to: 'https://devsintech.hashnode.dev/',
147+
},
148+
{
149+
label: 'GitHub',
150+
href: 'https://github.com/devs-in-tech/TechStackPlaybook',
151+
},
152+
],
153+
},
154+
],
155+
copyright: `Copyright © ${new Date().getFullYear()} DevsInTech. Built with Docusaurus.`,
156+
},
157+
prism: {
158+
theme: lightCodeTheme,
159+
darkTheme: darkCodeTheme,
160+
},
161+
}),
162+
};
163+
164+
module.exports = config;

0 commit comments

Comments
 (0)