Skip to content

Commit 2bcccdf

Browse files
authored
remove all jekyll files (#1502)
* remove all jekyll files * pass testing * cean * 0.10.87 * fix build * 0.10.88 * fix build * 0.10.89 * fix build * 0.10.90
1 parent a94a303 commit 2bcccdf

File tree

2,556 files changed

+73
-133897
lines changed

Some content is hidden

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

2,556 files changed

+73
-133897
lines changed

.file-name-linter.json

+5-9
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
11
{
22
"rules": {
3-
"jekyll/_posts": [
3+
"docusaurus/docs": [
44
"/[0-9\\-a-z]+\\.",
5-
"\\.md$"
5+
"\\.md(x?)$"
66
],
7-
"jekyll/assets": [
8-
"/[0-9\\-a-z_]+\\.",
9-
"\\.(webp|pdf|zip|svg)$"
7+
"docusaurus/static": [
8+
"^(\\.?)[0-9\\-a-z_]+(\\.?)",
9+
"\\.(webp|pdf|zip|svg|css|ico|png|nojekyll|js|json)$"
1010
]
1111
},
1212
"ignore": [
13-
"jekyll/assets/js",
14-
"jekyll/assets/css",
15-
"jekyll/assets/images",
16-
"jekyll/assets/contributors/wechaty",
1713
"tests/fixtures"
1814
]
1915
}

.github/CODEOWNERS

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#
22
# https://help.github.com/articles/about-codeowners/
33
#
4-
5-
jekyll/* @wechaty/editors
6-
docusaurus/* @wechaty/writers
4+
docusaurus/docs/* @wechaty/writers

.github/PULL_REQUEST_TEMPLATE.md

-53
This file was deleted.

.github/workflows/gh-pages.yml

+1-11
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
33

4-
name: GitHub Pages CI
4+
name: Docusaurus
55

66
on:
77
- push
@@ -32,8 +32,6 @@ jobs:
3232
git log --since="1 week ago" --name-only --pretty=format: | sort | uniq | wc -l
3333
- name: NPM Test
3434
run: npm test
35-
- name: Install Dependencies
36-
run: make install
3735
- name: Build
3836
run: npm run build
3937

@@ -48,11 +46,6 @@ jobs:
4846
with:
4947
fetch-depth: 0 # https://github.com/facebook/docusaurus/issues/2798#issuecomment-636602951
5048

51-
- name: Bundle Cache Config
52-
run: |
53-
sudo gem install bundler
54-
# bundle config path ~/.npm/bundle
55-
5649
- uses: actions/setup-node@v2
5750
with:
5851
node-version: 16
@@ -69,9 +62,6 @@ jobs:
6962
git reset --hard
7063
git commit --allow-empty -m "Orphan init"
7164
git checkout main
72-
- name: Install dependencies
73-
run: |
74-
make install
7565
- name: Bind git worktree with new-gh-pages folder and gh-pages branch
7666
run: |
7767
rm -fr new-gh-pages

.gitignore

+18-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,22 @@ package-lock.json
1111
new-gh-pages/
1212
tmp/
1313

14-
hash.file
15-
jekyll/_posts/2020-12-31-osschat-a-bridge-to-the-apache-way-in-china.md
16-
1714
.nyc_output/
15+
16+
node_modules
17+
18+
# Production
19+
build/
20+
21+
# Generated files
22+
.docusaurus
23+
.cache-loader
24+
25+
# Misc
26+
.env.local
27+
.env.development.local
28+
.env.test.local
29+
.env.production.local
30+
31+
t/
32+
t.*

Makefile

-45
This file was deleted.

README.md

+6-92
Original file line numberDiff line numberDiff line change
@@ -14,81 +14,13 @@ Repository for the Wechaty Organization Website, a resource for the Wechaty Orga
1414
<img src="https://img.shields.io/badge/[email protected]?logo=slack" /></a>
1515
</p>
1616

17-
[![GitHub Pages CI](https://github.com/wechaty/wechaty.js.org/workflows/GitHub%20Pages%20CI/badge.svg)](https://github.com/wechaty/wechaty.js.org/actions?query=workflow%3A%22GitHub+Pages+CI%22)
17+
[![GitHub Pages CI](https://github.com/wechaty/docusaurus/actions/workflows/gh-pages.yml/badge.svg)](https://github.com/wechaty/docusaurus/actions/workflows/gh-pages.yml)
1818
[![Powered by Wechaty](https://img.shields.io/badge/Powered%20By-Wechaty-brightgreen.svg)](https://github.com/Wechaty/wechaty)
1919
[![DIVIO documentation system](https://img.shields.io/badge/DIVIO-Documentation%20System-blue)](https://documentation.divio.com/)
2020
[![ES Modules](https://img.shields.io/badge/ES-Modules-brightgreen)](https://github.com/Chatie/tsconfig/issues/16)
2121

2222
</div>
2323

24-
## How To Post a Blog
25-
26-
To submit a blog post for publication on [wechaty.js.org](https://wechaty.js.org), you can follow the steps below.
27-
28-
1. Fork this repository. If you don't know what is meant by forking a repository, read about it [here](https://docs.github.com/en/github/getting-started-with-github/fork-a-repo)
29-
2. Clone the forked repository to your local machine. If you don't know how to do that, [this article](https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/cloning-a-repository) explains it well
30-
3. Make sure your forked repository is in sync with the main repository. If you don't know how to sync a forked repository,read about it in [this article](https://help.github.com/cn/github/collaborating-with-issues-and-pull-requests/syncing-a-fork)
31-
4. We prefer using [gitHub flow](https://guides.github.com/introduction/flow/). Therefore start by creating a branch for your blog using the command `git checkout -b name-of-blog-branch`. Give the branch a meaningful name
32-
5. Create a markdown file in [jekyll/\_posts](./jekyll/_posts) folder. The file name should follow the format `YYYY-MM-DD-your-blog-slug.md`. For example `2016-12-03-welcome-to-wechaty.md`
33-
6. Write your blog in markdown in the file you created in the previous step. If you are not familiar with markdown syntax, you can learn it [here](https://guides.github.com/features/mastering-markdown/)
34-
7. Add related images to [jekyll/assets](./jekyll/assets) folder under `$YEAR/$MONTH-your-blog-slug/` directory
35-
8. Add your info into `jekyll/_contributors/your_github_id.md`
36-
9. Commit your changes using the command `git commit -am "YOUR_BLOG_TITLE"`. `YOUR_BLOG_TITLE` is the title of your blog
37-
10. Push your branch to github using the command `git push origin name-of-blog-branch`.
38-
11. Create new Pull Request(PR)
39-
12. Sign the [CLA](https://en.wikipedia.org/wiki/Contributor_License_Agreement)
40-
13. Wait for the continuous integration workflow run to finish. If it is failing, fix whatever is making it to fail so that CI turns green
41-
14. Wait for @wechaty/editors to review your PR
42-
43-
That's it!
44-
45-
## Guidelines For Writing a Blog Post
46-
47-
### 1. Your blog post should have a Header
48-
49-
The header of your blog post should have a title, author and image.
50-
51-
This is illustrated in the example below:
52-
53-
```yaml
54-
---
55-
title: "'Score Your Face Photo' a ML&Wechaty practice"
56-
author: your_github_username
57-
image: your_teaser_image_path
58-
---
59-
<One line abstract for your blog post>
60-
61-
<Your beautiful blog post contents...>
62-
```
63-
64-
### 2. Writing Style
65-
66-
- You should keep all filenames and URLs as lowercase. Use `-` character between words instead of space when creating a new file or directory. e.g. `2017-10-06-wechat-pc-impactor` instead of `2017-10-06-WeChat PC Impactor`. No Chinese should be used in any filename.
67-
- Find a good image for the blog to make it more beautiful.
68-
- You should embed photos and videos before publishing, save all external files to the `/jekyll/assets/${YEAR}/$MONTH-your-blog-slug/` directory.
69-
70-
### 3. Do Not Commit Unrelated Files
71-
72-
Please do not commit unrelated files. It will keep things tidy and make it easier to review your PR.
73-
74-
### 4. How To Add Videos and PDFs To Your Blog Post
75-
76-
You can add videos and PDFs to your blog post by using the syntax below.
77-
78-
Example of how to add video or pdf
79-
80-
```html
81-
{% include iframe.html src="https://www.youtube.com/watch?v=3eq8wJfCAWs" %}
82-
```
83-
84-
or
85-
86-
```html
87-
{% include iframe.html src="/assets/2020/qijibot/final.pdf" %}
88-
```
89-
90-
You can read more at: [Add iframe to wechaty blog](https://wechaty.js.org/2020/08/24/add-video-to-wechaty-blog/)
91-
9224
## How To Run Tests
9325

9426
In order to make sure your changes have not broken anything, you can run the following commands before pushing your changes to gitHub.
@@ -98,27 +30,6 @@ npm install
9830
npm test
9931
```
10032

101-
## How To Preview Your changes
102-
103-
If you want to preview your blog post or changes on localhost, you need to have Jekyll installed in your machine. You can follow the [jekyll quickstart](https://jekyllrb.com/docs/) instructions to install jekyll.
104-
105-
### 1. Install Jekyll by Hand
106-
107-
Run Jekyll at localhost to preview your blog post by running the commands below.
108-
109-
```sh
110-
make install
111-
cd jekyll; make serve # or either run `./scripts/jekyll-serve.sh` for a fresh new start by cleaning cache
112-
```
113-
114-
### 2. Preview the Blog
115-
116-
You can view the blog by navigating to <http://127.0.0.1:4000/blog/> in your browser
117-
118-
## How To Make Other Contributions
119-
120-
If you are not interested in writing a blog post but would still love to make a contribution, you are still welcome. We are delighted to have you around.
121-
12233
### Why contribute?
12334

12435
As an open source product, Wechaty thrives from contributions of community members. Whatever your skill set is, there is a lot you can do to help us make Wechaty better! So start forking!
@@ -173,7 +84,11 @@ To get to know all our writers, see <https://github.com/wechaty/wechaty.js.org/g
17384

17485
## History
17586

176-
### main v0.9 (Aug 23, 2021)
87+
### main v0.10 (Apr 1, 2022)
88+
89+
Split docusaurus repo from the mixed repo with Jekyll ([Issue wechaty/wechaty.js.org#1](https://github.com/wechaty/wechaty.js.org/issues/1))
90+
91+
### v0.9 (Aug 23, 2021)
17792

17893
1. Add OpenAPI Specification docs at <https://wechaty.js.org/docs/openapi/> ([#1218](https://github.com/wechaty/wechaty.js.org/issues/1218))
17994

@@ -194,7 +109,6 @@ Init version
194109

195110
1. [@lijiarui](https://github.com/lijiarui), [Rui LI](https://wechaty.js.org/contributors/lijiarui), Microsoft AI MVP, Founder & CEO of Juzi.BOT (YC W19 Alumni)
196111
1. [@huan](https://github.com/huan), [Huan LI](https://wechaty.js.org/contributors/huan), Tencent TVP of Chatbot, \<[email protected]\>
197-
1. [@wj-Mcat](https://github.com/wj-Mcat), [Jingjing WU](https://wechaty.js.org/contributors/wj-mcat), Author of [Python Wechaty](https://github.com/wechaty/python-wechaty)
198112

199113
And [wechaty/contributors](https://github.com/orgs/wechaty/teams/contributors/members)
200114

docusaurus/.gitignore

-14
This file was deleted.
File renamed without changes.

docusaurus/config/presets/preset-classic.js renamed to docusaurus/docusaurus.config.d/presets/preset-classic.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
{
1010
docs: {
1111
sidebarPath: require.resolve('../../sidebars.ts'),
12-
editUrl: 'https://github.com/wechaty/wechaty.js.org/edit/main/docusaurus/',
12+
editUrl: 'https://github.com/wechaty/docusaurus/edit/main/docusaurus/',
1313
showLastUpdateAuthor: true,
1414
showLastUpdateTime: true,
1515
},
1616
// blog: {
1717
// showReadingTime: true,
1818
// // Please change this to your repo.
1919
// editUrl:
20-
// 'https://github.com/wechaty/wechaty.js.org/edit/master/docusaurusblog/',
20+
// 'https://github.com/wechaty/docusaurus/edit/master/docusaurus/blog/',
2121
// },
2222
theme: {
2323
customCss: require.resolve('../../src/css/custom.css'),

docusaurus/docusaurus.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const {
55
plugins,
66
themeConfig,
77
presets,
8-
} = require('./config/mod.js')
8+
} = require('./docusaurus.config.d/mod.js')
99

1010
const config = {
1111
title: 'Wechaty',

docusaurus/package.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,15 @@
1717
"dependencies": {
1818
"@docusaurus/core": "2.0.0-beta.18",
1919
"@docusaurus/preset-classic": "2.0.0-beta.18",
20-
"@mdx-js/react": "^2.1.0",
20+
"@mdx-js/react": "^1.6.22",
2121
"@svgr/webpack": "^6.2.1",
2222
"clsx": "^1.1.1",
23-
"file-loader": "^6.2.0",
2423
"prism-react-renderer": "^1.3.1",
2524
"react": "^17.0.0",
2625
"react-dom": "^17.0.0",
2726
"react-copy-to-clipboard": "^5.0.4",
2827
"react-qr-svg": "^2.3.0",
29-
"redocusaurus": "^1.0.1",
30-
"url-loader": "^4.1.1"
28+
"redocusaurus": "^1.0.1"
3129
},
3230
"devDependencies": {
3331
"@docusaurus/module-type-aliases": "2.0.0-beta.18",

docusaurus/static/CNAME

-1
This file was deleted.

docusaurus/static/baidu_verify_eEWaS8ZlxS.html

-1
This file was deleted.

0 commit comments

Comments
 (0)