X-lab2017 / open-digger-website

Official Website for OpenDigger Community
https://open-digger.cn
Apache License 2.0
6 stars 6 forks source link

feat: refactoring + mermaid support & new-docs #20

Closed Neilblaze closed 3 months ago

Neilblaze commented 3 months ago

Description

Ref : Slack Discussion / cc: @frank-zsy β—‹ Partially resolves #11 > Deployed URL πŸš€

Before submitting the PR, please take the following into consideration

Neilblaze commented 3 months ago

Adding a note that, this & this might create a merge conflict, since I forgot performing cherry picking from the update-vX branch (on my local), so simply ignore it by accepting all incoming changes.

frank-zsy commented 3 months ago

/preview

github-actions[bot] commented 3 months ago

πŸͺ§The website for this PR is deployed at https://open-digger.cn/pull_20/

frank-zsy commented 3 months ago

Oh, I forgot that in Docusaurus we need to set the base URL properly. Will fix the workflow soon.

Neilblaze commented 3 months ago

Haha, no worries! πŸ˜„ @frank-zsy I have a worker that deploys from my local everytime I create PR, and for now, you can access the deployed preview from here!

frank-zsy commented 3 months ago

Haha, no worries! πŸ˜„ @frank-zsy I have a worker that deploys from my local everytime I create PR, and for now, you can access the deployed preview from here!

Cool, how do you do this in local env? Do you need to modify the base URL on building?

Neilblaze commented 3 months ago

Cool, how do you do this in local env? Do you need to modify the base URL on building?

@frank-zsy It's a very simple hack β€” I just wrote a shell script followed by an alias ("buildRun") to trigger a deploy preview on netlify. So essentially every time I perform buildRun on the terminal, it does npm run build & takes the build folder and overrides the previously deployed build file (on my subdomain), and the cool part is that, since the path and domain remains the same, the overriding performed does purge all previously stored cache duing the previous build, so it's fresh everytime!

Neilblaze commented 3 months ago

@frank-zsy made the changes, preview it here πŸš€

Neilblaze commented 3 months ago

@frank-zsy PTAL!

frank-zsy commented 3 months ago

@Neilblaze I have made a bit change in the title because the Chinese version should to be translated.

LGTM and thanks for the start.

Neilblaze commented 3 months ago

@frank-zsy Oh my bad, yes, i18n should be the folder where I keep the EN variant and the default docs should have the To be Translated label since the defaultLocale is ZH, thanks for the edit!