Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split the repo to two: Jekyll & Docusaurus #1

Closed
huan opened this issue Mar 30, 2022 · 2 comments
Closed

Split the repo to two: Jekyll & Docusaurus #1

huan opened this issue Mar 30, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@huan
Copy link
Member

huan commented Mar 30, 2022

We have one repo of the wechaty.js.org for both the Jekyll & Docusaurus system and are using the build process to merge all the artifacts built to the same webroot folder, to serve our users.

However, from today's perspective, the repo has been grown bigger and bigger, and the build time for the huge repo is going to be slower and slower.

So we decided to split this mono-repo into two:

  1. Jekyll - https://github.com/wechaty/jekyll
  2. Docusaurus - https://github.com/wechaty/docusaurus

Jekyll

Folders and files:

$ ls
2016  2018  2020  2022        assets  buy-me-a-coffee.html  contact.html  feed.xml  manifest.json  privacy-policy.html  service-worker.js   sw-register.js
2017  2019  2021  about.html  blog    categories.html       contributors  Makefile  news           robots.txt           sitemap-jekyll.xml  tags.html

Docusaurus

To be list

@huan huan added the enhancement New feature or request label Mar 30, 2022
This was referenced Mar 30, 2022
@huan huan transferred this issue from wechaty/docusaurus Mar 30, 2022
huan added a commit to Chatie/server that referenced this issue Apr 1, 2022
@huan
Copy link
Member Author

huan commented Apr 1, 2022

@huan
Copy link
Member Author

huan commented Apr 1, 2022

It seems that everything works as expected.

 # 
 # Web Root 
 # 
 location / { 
   try_files $uri @jekyll @docusaurus; 
 } 

The above Nginx location settings will help us to return files we are not sure where they are: the proxy will try both @jekyll and @docusaurus named locations.

For example, the below links both work for now:

The real URL of the above files are:

@huan huan closed this as completed Apr 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant