Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update content
Browse files Browse the repository at this point in the history
slhmy committed Nov 12, 2023
1 parent 88baba2 commit 2600543
Showing 8 changed files with 213 additions and 15 deletions.
6 changes: 6 additions & 0 deletions blog/2023-11-12-welcome.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
slug: weclome
title: Welcome
authors: [slhmy]
tags: [guide]
---
5 changes: 5 additions & 0 deletions docs/development/getting-started.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
sidebar_position: 1
---

# Getting Started
8 changes: 7 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ const darkTheme = themes.dracula;
/** @type {import('@docusaurus/types').Config} */
const config = {
title: "Full Stack Docusaurus",
tagline: "Dinosaurs are cool",
tagline: "Learn everything about how to become a full stack developer here👋",
favicon: "img/favicon.ico",

// Set the production url of your site here
@@ -78,6 +78,12 @@ const config = {
src: "img/logo.svg",
},
items: [
{
type: "docSidebar",
sidebarId: "developmentSidebar",
position: "left",
label: "Development",
},
{
type: "docSidebar",
sidebarId: "algorithmsSidebar",
131 changes: 131 additions & 0 deletions i18n/zh-CN/code.json
Original file line number Diff line number Diff line change
@@ -285,5 +285,136 @@
"theme.DocSidebarItem.collapseCategoryAriaLabel": {
"message": "折叠侧边栏分类 '{label}'",
"description": "The ARIA label to collapse the sidebar category"
},
"theme.SearchBar.seeAll": {
"message": "查看全部 {count} 个结果"
},
"theme.SearchPage.documentsFound.plurals": {
"message": "找到 {count} 份文件",
"description": "Pluralized label for \"{count} documents found\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
},
"theme.SearchPage.existingResultsTitle": {
"message": "「{query}」的搜索结果",
"description": "The search page title for non-empty query"
},
"theme.SearchPage.emptyResultsTitle": {
"message": "在文档中搜索",
"description": "The search page title for empty query"
},
"theme.SearchPage.inputPlaceholder": {
"message": "在此输入搜索字词",
"description": "The placeholder for search page input"
},
"theme.SearchPage.inputLabel": {
"message": "搜索",
"description": "The ARIA label for search page input"
},
"theme.SearchPage.algoliaLabel": {
"message": "通过 Algolia 搜索",
"description": "The ARIA label for Algolia mention"
},
"theme.SearchPage.noResultsText": {
"message": "未找到任何结果",
"description": "The paragraph for empty search result"
},
"theme.SearchPage.fetchingNewResults": {
"message": "正在获取新的搜索结果...",
"description": "The paragraph for fetching new search results"
},
"theme.SearchBar.label": {
"message": "搜索",
"description": "The ARIA label and placeholder for search button"
},
"theme.SearchModal.searchBox.resetButtonTitle": {
"message": "清除查询",
"description": "The label and ARIA label for search box reset button"
},
"theme.SearchModal.searchBox.cancelButtonText": {
"message": "取消",
"description": "The label and ARIA label for search box cancel button"
},
"theme.SearchModal.startScreen.recentSearchesTitle": {
"message": "最近搜索",
"description": "The title for recent searches"
},
"theme.SearchModal.startScreen.noRecentSearchesText": {
"message": "没有最近搜索",
"description": "The text when no recent searches"
},
"theme.SearchModal.startScreen.saveRecentSearchButtonTitle": {
"message": "保存这个搜索",
"description": "The label for save recent search button"
},
"theme.SearchModal.startScreen.removeRecentSearchButtonTitle": {
"message": "从历史记录中删除这个搜索",
"description": "The label for remove recent search button"
},
"theme.SearchModal.startScreen.favoriteSearchesTitle": {
"message": "收藏",
"description": "The title for favorite searches"
},
"theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle": {
"message": "从收藏列表中删除这个搜索",
"description": "The label for remove favorite search button"
},
"theme.SearchModal.errorScreen.titleText": {
"message": "无法获取结果",
"description": "The title for error screen of search modal"
},
"theme.SearchModal.errorScreen.helpText": {
"message": "你可能需要检查网络连接。",
"description": "The help text for error screen of search modal"
},
"theme.SearchModal.footer.selectText": {
"message": "选中",
"description": "The explanatory text of the action for the enter key"
},
"theme.SearchModal.footer.selectKeyAriaLabel": {
"message": "Enter 键",
"description": "The ARIA label for the Enter key button that makes the selection"
},
"theme.SearchModal.footer.navigateText": {
"message": "导航",
"description": "The explanatory text of the action for the Arrow up and Arrow down key"
},
"theme.SearchModal.footer.navigateUpKeyAriaLabel": {
"message": "向上键",
"description": "The ARIA label for the Arrow up key button that makes the navigation"
},
"theme.SearchModal.footer.navigateDownKeyAriaLabel": {
"message": "向下键",
"description": "The ARIA label for the Arrow down key button that makes the navigation"
},
"theme.SearchModal.footer.closeText": {
"message": "关闭",
"description": "The explanatory text of the action for Escape key"
},
"theme.SearchModal.footer.closeKeyAriaLabel": {
"message": "Esc 键",
"description": "The ARIA label for the Escape key button that close the modal"
},
"theme.SearchModal.footer.searchByText": {
"message": "搜索提供",
"description": "The text explain that the search is making by Algolia"
},
"theme.SearchModal.noResultsScreen.noResultsText": {
"message": "没有结果:",
"description": "The text explains that there are no results for the following search"
},
"theme.SearchModal.noResultsScreen.suggestedQueryText": {
"message": "试试搜索",
"description": "The text for the suggested query when no results are found for the following search"
},
"theme.SearchModal.noResultsScreen.reportMissingResultsText": {
"message": "认为这个查询应该有结果?",
"description": "The text for the question where the user thinks there are missing results"
},
"theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": {
"message": "请告知我们。",
"description": "The text for the link to report missing results"
},
"theme.SearchModal.placeholder": {
"message": "搜索文档",
"description": "The placeholder of the input of the DocSearch pop-up modal"
}
}
43 changes: 43 additions & 0 deletions i18n/zh-CN/docusaurus-plugin-content-blog/2023-11-12-welcome.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
slug: weclome
title: 欢迎👋
authors: [slhmy]
tags: [指引]
sidebar_position: 1
---

:::tip
这里是对“全栈开发知识库”的一些说明,帮助你更快的了解到你想要的内容。
:::

## 前言

我在学生时代时常常被类似的问题困扰:不清楚该如何利用编程来解决遇到的问题、实现想要的功能。
学习的基础知识很多,但是在实际的应用中,却不知道如何使用。

我总是希望能够了解事物的全貌,而不是只知道其中的一部分。
也因此,在几年前开始寻找工作时,就已经考虑过是否可以成为一名全栈开发者。

如你所见,我现在建立了这个知识库,说明我已经有了一定的信心和能力。
“全栈”是一个无限宽广的领域,不过幸运的是,我们进入了一个崭新的时代,在AI和现代化的工具链中,我们可以更快的学习和实践。
我希望这个知识库可以帮助到你,我们一起从最通用的部分开始,最终学会如何在自己喜欢的领域中前进。

## 指南

“全栈开发知识库”主要有三个分区:**开发****算法****博客**(Docusaurus是框架提供的建站指引,我只是还想暂时留着它)。

- 开发和算法分区是我对基础知识进行梳理的分区,这些内容应当是通用的,你会在考试、面试或者实际开发中遇到它们。
- 博客更多地会是一些我个人探索和想法,它们会更加有趣。

**搜索**功能是完全可用的,它基于algolia,可以帮助你快速找到想要的内容。
这是一个我日常也会使用的功能,所以请放心,我会尽可能的保证它的可用性。

## 贡献

这个知识库是开源的,你可以在[GitHub](https://github.com/slhmy/full-stack-docusaurus)找到源码。

:::note
“编辑此页”按钮也是可用的,但它只会定向到en版本文章的源码,如果你想产出其他语言的内容,你需要了解一些Docusaurus的知识。
:::

我非常欢迎合作者的到来,或许我们可以在未来有活跃的issue和discussion来帮助我们产出更加优秀的内容。
4 changes: 4 additions & 0 deletions i18n/zh-CN/docusaurus-theme-classic/navbar.json
Original file line number Diff line number Diff line change
@@ -22,5 +22,9 @@
"item.label.Docusaurus": {
"message": "Docusaurus",
"description": "Navbar item with label Docusaurus"
},
"item.label.Development": {
"message": "开发",
"description": "Navbar item with label Development"
}
}
5 changes: 3 additions & 2 deletions sidebars.js
Original file line number Diff line number Diff line change
@@ -14,8 +14,9 @@
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
const sidebars = {
// By default, Docusaurus generates a sidebar from the docs folder structure
docusaurusSidebar: [{type: 'autogenerated', dirName: 'docusaurus'}],
algorithmsSidebar: [{type: 'autogenerated', dirName: 'algorithms'}],
docusaurusSidebar: [{ type: "autogenerated", dirName: "docusaurus" }],
algorithmsSidebar: [{ type: "autogenerated", dirName: "algorithms" }],
developmentSidebar: [{ type: "autogenerated", dirName: "development" }],

// But you can create a sidebar manually
/*
26 changes: 14 additions & 12 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
import React from 'react';
import clsx from 'clsx';
import Link from '@docusaurus/Link';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import Layout from '@theme/Layout';
import HomepageFeatures from '@site/src/components/HomepageFeatures';
import React from "react";
import clsx from "clsx";
import Link from "@docusaurus/Link";
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
import Layout from "@theme/Layout";
import HomepageFeatures from "@site/src/components/HomepageFeatures";

import styles from './index.module.css';
import styles from "./index.module.css";

function HomepageHeader() {
const {siteConfig} = useDocusaurusContext();
const { siteConfig } = useDocusaurusContext();
return (
<header className={clsx('hero hero--primary', styles.heroBanner)}>
<header className={clsx("hero hero--primary", styles.heroBanner)}>
<div className="container">
<h1 className="hero__title">{siteConfig.title}</h1>
<p className="hero__subtitle">{siteConfig.tagline}</p>
<div className={styles.buttons}>
<Link
className="button button--secondary button--lg"
to="/docs/docusaurus/intro">
to="/docs/docusaurus/intro"
>
Docusaurus Tutorial - 5min ⏱️
</Link>
</div>
@@ -27,11 +28,12 @@ function HomepageHeader() {
}

export default function Home(): JSX.Element {
const {siteConfig} = useDocusaurusContext();
const { siteConfig } = useDocusaurusContext();
return (
<Layout
title={`Hello from ${siteConfig.title}`}
description="Description will go into a meta tag in <head />">
description="Description will go into a meta tag in <head />"
>
<HomepageHeader />
<main>
<HomepageFeatures />

0 comments on commit 2600543

Please sign in to comment.