From f378d59cd2fc8be3445aa3c5fe6593c9d9d8853a Mon Sep 17 00:00:00 2001 From: alexandermatthew25 Date: Thu, 5 Jun 2025 07:42:05 +0000 Subject: [PATCH 1/3] polishing the readme --- .gitignore | 2 + README.md | 15 +- docusaurus.config.ts | 472 ++++++++++++++++++++++--------------------- 3 files changed, 259 insertions(+), 230 deletions(-) diff --git a/.gitignore b/.gitignore index 047147e76..5a644db08 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,5 @@ npm-debug.log* yarn-debug.log* yarn-error.log* + +.vscode \ No newline at end of file diff --git a/README.md b/README.md index 38fba6ad8..ab64e4c77 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,14 @@ -# Website +
+ + Logo + +

Welcome to the ProgrammerzamanNow Website

+
This website is built using [Docusaurus](https://docusaurus.io/), a modern static website generator. @@ -13,7 +23,6 @@ $ yarn ``` $ yarn start ``` - This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server. ### Build @@ -32,4 +41,4 @@ Using SSH: GIT_USER=khannedy USE_SSH=true DEPLOYMENT_BRANCH=gh-pages yarn deploy ``` -If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch. +If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch. \ No newline at end of file diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 8545ef744..f77dd1dc4 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -1,245 +1,263 @@ -import {themes as prismThemes} from 'prism-react-renderer'; -import type {Config} from '@docusaurus/types'; -import type * as Preset from '@docusaurus/preset-classic'; -import {EnumChangefreq} from "sitemap/dist/lib/types"; +import { themes as prismThemes } from "prism-react-renderer"; +import type { Config } from "@docusaurus/types"; +import type * as Preset from "@docusaurus/preset-classic"; +import { EnumChangefreq } from "sitemap/dist/lib/types"; const config: Config = { - title: 'Programmer Zaman Now', - tagline: 'Tempat Belajar untuk Menjadi Software Development Expert yang Zaman Now Banget!', - favicon: 'img/pzn.png', + title: "Programmer Zaman Now", + tagline: + "Tempat Belajar untuk Menjadi Software Development Expert yang Zaman Now Banget!", + favicon: "img/pzn.png", - // Set the production url of your site here - url: 'https://www.programmerzamannow.com', - // Set the // pathname under which your site is served - // For GitHub pages deployment, it is often '//' - baseUrl: '/', + // Set the production url of your site here + url: "https://www.programmerzamannow.com", + // Set the // pathname under which your site is served + // For GitHub pages deployment, it is often '//' + baseUrl: "/", - // GitHub pages deployment config. - // If you aren't using GitHub pages, you don't need these. - organizationName: 'ProgrammerZamanNow', // Usually your GitHub org/user name. - projectName: 'programmerzamannow.github.io', // Usually your repo name. + // GitHub pages deployment config. + // If you aren't using GitHub pages, you don't need these. + organizationName: "ProgrammerZamanNow", // Usually your GitHub org/user name. + projectName: "programmerzamannow.github.io", // Usually your repo name. - onBrokenLinks: 'throw', - onBrokenMarkdownLinks: 'warn', + 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'], - }, + // 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"], + }, - markdown: { - mermaid: true, - }, - themes: ['@docusaurus/theme-mermaid'], + markdown: { + mermaid: true, + }, + themes: ["@docusaurus/theme-mermaid"], - presets: [ - [ - 'classic', - { - docs: { - sidebarPath: './sidebars.ts', - // 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: './src/css/custom.css', - }, - sitemap: { - changefreq: EnumChangefreq.WEEKLY, - priority: 0.5, - filename: 'sitemap.xml', - } - } satisfies Preset.Options, - ], + presets: [ + [ + "classic", + { + docs: { + sidebarPath: "./sidebars.ts", + // 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: "./src/css/custom.css", + }, + sitemap: { + changefreq: EnumChangefreq.WEEKLY, + priority: 0.5, + filename: "sitemap.xml", + }, + } satisfies Preset.Options, ], + ], - plugins: [ - [ - '@docusaurus/plugin-content-docs', - { - id: 'pemrograman-java', - path: 'articles/pemrograman/java', - routeBasePath: 'pemrograman/java', - sidebarPath: require.resolve('./sidebars.js'), - }, - ], + plugins: [ + [ + "@docusaurus/plugin-content-docs", + { + id: "pemrograman-java", + path: "articles/pemrograman/java", + routeBasePath: "pemrograman/java", + sidebarPath: require.resolve("./sidebars.js"), + }, ], + ], - themeConfig: { - // Replace with your project's social card - image: 'img/pzn.png', - navbar: { - title: 'Programmer Zaman Now', - logo: { - alt: 'Programmer Zaman Now', - src: 'img/pzn.png', + themeConfig: { + // Replace with your project's social card + image: "img/pzn.png", + navbar: { + title: "Programmer Zaman Now", + logo: { + alt: "Programmer Zaman Now", + src: "img/pzn.png", + }, + items: [ + { + position: "left", + to: "/promo", + label: "Promo Kelas Udemy", + }, + { + position: "left", + to: "https://kelas.programmerzamannow.com/", + label: "Kelas Online", + }, + { + position: "left", + label: "Pemrograman", + items: [ + { + to: "/pemrograman/java/intro", + label: "Java", }, - items: [ - { - position: 'left', - to: '/promo', - label: 'Promo Kelas Udemy', - }, - { - position: 'left', - to: 'https://kelas.programmerzamannow.com/', - label: 'Kelas Online', - }, - { - position: 'left', - label: 'Pemrograman', - items: [ - { - to: '/pemrograman/java/intro', - label: 'Java', - }, - // { - // to: '/pemrograman/javascript/intro', - // label: 'JavaScript', - // }, - // { - // to: '/pemrograman/golang/intro', - // label: 'Go-Lang', - // }, - // { - // to: '/pemrograman/php/intro', - // label: 'PHP', - // }, - // { - // to: '/pemrograman/dart/intro', - // label: 'Dart', - // }, - // { - // to: '/pemrograman/kotlin/intro', - // label: 'Kotlin', - // }, - // { - // to: '/pemrograman/swift/intro', - // label: 'Swift', - // }, - // { - // to: '/pemrograman/typescript/intro', - // label: 'TypeScript', - // } - ] - }, - { - position: 'right', - label: 'Komunitas', - items: [ - // { - // href: 'https://discord.com', - // label: 'Discord', - // }, - { - href: 'https://web.facebook.com/groups/programmerzamannow', - label: 'Facebook Group', - } - ] - }, - { - position: 'right', - label: 'Social Media', - items: [ - { - href: 'https://youtube.com/c/ProgrammerZamanNow', - label: 'Youtube', - }, - { - href: 'https://instagram.com/ProgrammerZamanNow', - label: 'Instagram', - }, - { - href: 'https://facebook.com/ProgrammerZamanNow', - label: 'Facebook', - }, - { - href: 'https://t.me/ProgrammerZamanNow', - label: 'Telegram', - } - ] - }, - { - href: 'https://github.com/ProgrammerZamanNow/programmerzamannow.github.io', - label: 'GitHub', - position: 'right', - }, - ], + // { + // to: '/pemrograman/javascript/intro', + // label: 'JavaScript', + // }, + // { + // to: '/pemrograman/golang/intro', + // label: 'Go-Lang', + // }, + // { + // to: '/pemrograman/php/intro', + // label: 'PHP', + // }, + // { + // to: '/pemrograman/dart/intro', + // label: 'Dart', + // }, + // { + // to: '/pemrograman/kotlin/intro', + // label: 'Kotlin', + // }, + // { + // to: '/pemrograman/swift/intro', + // label: 'Swift', + // }, + // { + // to: '/pemrograman/typescript/intro', + // label: 'TypeScript', + // } + ], }, - footer: { - style: 'dark', - links: [ - { - title: 'Social Media', - items: [ - { - label: 'Youtube', - href: 'https://youtube.com/c/ProgrammerZamanNow', - }, - { - label: 'Instagram', - href: 'https://instagram.com/ProgrammerZamanNow', - }, - { - label: 'Facebook', - href: 'https://facebook.com/ProgrammerZamanNow', - }, - { - label: 'Telegram', - href: 'https://t.me/ProgrammerZamanNow', - }, - ], - }, - { - title: 'Komunitas', - items: [ - // { - // label: 'Discord', - // href: 'https://discordapp.com/invite/docusaurus', - // }, - { - label: 'Facebook Group', - href: 'https://www.facebook.com/groups/526962685085680', - }, - ], - }, - { - title: 'More', - items: [ - // { - // label: 'Blog', - // to: '/blog', - // }, - { - label: 'GitHub', - href: 'https://github.com/ProgrammerZamanNow/programmerzamannow.github.io', - }, - ], - }, - ], - copyright: `Built with Love by Programmer Zaman Now.`, + { + position: "right", + label: "Komunitas", + items: [ + // { + // href: 'https://discord.com', + // label: 'Discord', + // }, + { + href: "https://web.facebook.com/groups/programmerzamannow", + label: "Facebook Group", + }, + ], }, - prism: { - theme: prismThemes.github, - darkTheme: prismThemes.dracula, - additionalLanguages: [ - "java", "php", "go", "css", "javascript", "c", "cpp", "csharp", "csv", "json", - "dart", "gradle", "nginx", "sass", "sql", "swift", "typescript", "rust", "yaml" - ] + { + position: "right", + label: "Social Media", + items: [ + { + href: "https://youtube.com/c/ProgrammerZamanNow", + label: "Youtube", + }, + { + href: "https://instagram.com/ProgrammerZamanNow", + label: "Instagram", + }, + { + href: "https://facebook.com/ProgrammerZamanNow", + label: "Facebook", + }, + { + href: "https://t.me/ProgrammerZamanNow", + label: "Telegram", + }, + ], + }, + { + href: "https://github.com/ProgrammerZamanNow/programmerzamannow.github.io", + label: "GitHub", + position: "right", + }, + ], + }, + footer: { + style: "dark", + links: [ + { + title: "Social Media", + items: [ + { + label: "Youtube", + href: "https://youtube.com/c/ProgrammerZamanNow", + }, + { + label: "Instagram", + href: "https://instagram.com/ProgrammerZamanNow", + }, + { + label: "Facebook", + href: "https://facebook.com/ProgrammerZamanNow", + }, + { + label: "Telegram", + href: "https://t.me/ProgrammerZamanNow", + }, + ], + }, + { + title: "Komunitas", + items: [ + // { + // label: 'Discord', + // href: 'https://discordapp.com/invite/docusaurus', + // }, + { + label: "Facebook Group", + href: "https://www.facebook.com/groups/526962685085680", + }, + ], }, - } satisfies Preset.ThemeConfig, + { + title: "More", + items: [ + // { + // label: 'Blog', + // to: '/blog', + // }, + { + label: "GitHub", + href: "https://github.com/ProgrammerZamanNow/programmerzamannow.github.io", + }, + ], + }, + ], + copyright: `Built with ❤️ by Programmer Zaman Now.`, + }, + prism: { + theme: prismThemes.github, + darkTheme: prismThemes.dracula, + additionalLanguages: [ + "java", + "php", + "go", + "css", + "javascript", + "c", + "cpp", + "csharp", + "csv", + "json", + "dart", + "gradle", + "nginx", + "sass", + "sql", + "swift", + "typescript", + "rust", + "yaml", + ], + }, + } satisfies Preset.ThemeConfig, }; -export default config; +export default config; \ No newline at end of file From 0cc56605f20991dd0c389579ead749a069b2502c Mon Sep 17 00:00:00 2001 From: alexandermatthew25 Date: Thu, 5 Jun 2025 07:46:00 +0000 Subject: [PATCH 2/3] done --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ab64e4c77..888fa681b 100644 --- a/README.md +++ b/README.md @@ -7,9 +7,11 @@ height="100" /> -

Welcome to the ProgrammerzamanNow Website

+

Welcome to the ProgrammerzamanNow Website

+
+ This website is built using [Docusaurus](https://docusaurus.io/), a modern static website generator. ### Installation @@ -18,7 +20,7 @@ This website is built using [Docusaurus](https://docusaurus.io/), a modern stati $ yarn ``` -### Local Development +### Local development ``` $ yarn start @@ -41,4 +43,4 @@ Using SSH: GIT_USER=khannedy USE_SSH=true DEPLOYMENT_BRANCH=gh-pages yarn deploy ``` -If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch. \ No newline at end of file +If you're using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch. \ No newline at end of file From 9ccb74c326ae3d51b0b3a6d9e93f23fca6106ed6 Mon Sep 17 00:00:00 2001 From: archangel-12 Date: Mon, 9 Jun 2025 13:03:25 +0000 Subject: [PATCH 3/3] done --- .gitignore | 3 ++- README.md | 44 ++++++++++++++++++++------------------------ docusaurus.config.ts | 6 +++--- src/pages/index.tsx | 2 +- 4 files changed, 26 insertions(+), 29 deletions(-) diff --git a/.gitignore b/.gitignore index 5a644db08..24eba2931 100644 --- a/.gitignore +++ b/.gitignore @@ -20,4 +20,5 @@ npm-debug.log* yarn-debug.log* yarn-error.log* -.vscode \ No newline at end of file +.vscode +bun.lock \ No newline at end of file diff --git a/README.md b/README.md index 888fa681b..20f923e09 100644 --- a/README.md +++ b/README.md @@ -10,37 +10,33 @@

Welcome to the ProgrammerzamanNow Website

-
+### 🚀 Introduction +This website is built using [Docusaurus](https://docusaurus.io/), a modern static website generator designed for fast and efficient content delivery -This website is built using [Docusaurus](https://docusaurus.io/), a modern static website generator. +### 📦 Installation +To install dependencies, run: -### Installation - -``` -$ yarn +```sh +yarn ``` -### Local development - +### 🔥 Local Development +Start a local development server and open a browser window: +```sh +yarn start ``` -$ yarn start -``` -This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server. - -### Build +Changes will be reflected live without restarting the server. +### 🏗️ Build +Generate static content for production: +```sh +yarn build ``` -$ yarn build -``` +The static files will be stored in the build directory and can be deployed using any hosting service. -This command generates static content into the `build` directory and can be served using any static contents hosting service. - -### Deployment - -Using SSH: - -``` +### 🚀 Deployment +Deploy using SSH: +```sh GIT_USER=khannedy USE_SSH=true DEPLOYMENT_BRANCH=gh-pages yarn deploy ``` - -If you're using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch. \ No newline at end of file +If hosting on GitHub Pages, this command conveniently builds and pushes to the `gh-pages` branch \ No newline at end of file diff --git a/docusaurus.config.ts b/docusaurus.config.ts index f77dd1dc4..d1a45a23f 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -146,7 +146,7 @@ const config: Config = { // }, { href: "https://web.facebook.com/groups/programmerzamannow", - label: "Facebook Group", + label: "Grup facebook", }, ], }, @@ -211,7 +211,7 @@ const config: Config = { // href: 'https://discordapp.com/invite/docusaurus', // }, { - label: "Facebook Group", + label: "Grup facebook", href: "https://www.facebook.com/groups/526962685085680", }, ], @@ -230,7 +230,7 @@ const config: Config = { ], }, ], - copyright: `Built with ❤️ by Programmer Zaman Now.`, + copyright: `Built with ❤️ by Programmer Zaman Now`, }, prism: { theme: prismThemes.github, diff --git a/src/pages/index.tsx b/src/pages/index.tsx index a9e5d84cd..55d757de5 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -20,7 +20,7 @@ function HomepageHeader() { - Gabung Kelas Online! + Gabung kelas online sekarang juga!