You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/01/15 14:52:56 UTC
[GitHub] [apisix-website] KishaniKandasamy opened a new pull request #141: upgrade: docusaurusV2
KishaniKandasamy opened a new pull request #141:
URL: https://github.com/apache/apisix-website/pull/141
Changes:
upgrade: docusaurusV2
Screenshots of the change:

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] KishaniKandasamy commented on a change in pull request #141: upgrade: docusaurusV2
Posted by GitBox <gi...@apache.org>.
KishaniKandasamy commented on a change in pull request #141:
URL: https://github.com/apache/apisix-website/pull/141#discussion_r558836701
##########
File path: website2.0/package.json
##########
@@ -0,0 +1,30 @@
+{
+ "scripts": {
+ "examples": "docusaurus-examples",
+ "start": "docusaurus start",
+ "build": "docusaurus build",
+ "publish-gh-pages": "docusaurus-publish",
+ "write-translations": "docusaurus-write-translations",
+ "version": "docusaurus-version",
+ "rename-version": "docusaurus-rename-version",
+ "swizzle": "docusaurus swizzle",
+ "deploy": "docusaurus deploy",
+ "docusaurus": "docusaurus"
+ },
+ "devDependencies": {},
+ "dependencies": {
+ "@docusaurus/core": "2.0.0-alpha.70",
+ "@docusaurus/preset-classic": "2.0.0-alpha.70",
+ "clsx": "^1.1.1",
+ "react": "^16.10.2",
+ "react-dom": "^16.10.2"
+ },
+ "browserslist": {
+ "production": [">0.5%", "not dead", "not op_mini all"],
+ "development": [
+ "last 1 chrome version",
+ "last 1 firefox version",
+ "last 1 safari version"
+ ]
+ }
+}
Review comment:
Yes .I will correct it :)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] KishaniKandasamy commented on pull request #141: upgrade: docusaurusV2
Posted by GitBox <gi...@apache.org>.
KishaniKandasamy commented on pull request #141:
URL: https://github.com/apache/apisix-website/pull/141#issuecomment-761539894
> I see there has a cli to help us migrate.
>
> https://v2.docusaurus.io/docs/migration/automated
Yes. Initially I did running the migration cli, and tried to complete the missing parts using the manual migration process.
# migration command format
[1]npx @docusaurus/migrate migrate ( v1 website directory) (desired v2 website directory)
Ex: npx @docusaurus/migrate migrate ./v1-website ./v2-website
That's why I created website2.0 :)

But here It says **some parts can't easily be automated, and have to fallback to the manual process.**
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] KishaniKandasamy commented on a change in pull request #141: upgrade: docusaurusV2
Posted by GitBox <gi...@apache.org>.
KishaniKandasamy commented on a change in pull request #141:
URL: https://github.com/apache/apisix-website/pull/141#discussion_r558836701
##########
File path: website2.0/package.json
##########
@@ -0,0 +1,30 @@
+{
+ "scripts": {
+ "examples": "docusaurus-examples",
+ "start": "docusaurus start",
+ "build": "docusaurus build",
+ "publish-gh-pages": "docusaurus-publish",
+ "write-translations": "docusaurus-write-translations",
+ "version": "docusaurus-version",
+ "rename-version": "docusaurus-rename-version",
+ "swizzle": "docusaurus swizzle",
+ "deploy": "docusaurus deploy",
+ "docusaurus": "docusaurus"
+ },
+ "devDependencies": {},
+ "dependencies": {
+ "@docusaurus/core": "2.0.0-alpha.70",
+ "@docusaurus/preset-classic": "2.0.0-alpha.70",
+ "clsx": "^1.1.1",
+ "react": "^16.10.2",
+ "react-dom": "^16.10.2"
+ },
+ "browserslist": {
+ "production": [">0.5%", "not dead", "not op_mini all"],
+ "development": [
+ "last 1 chrome version",
+ "last 1 firefox version",
+ "last 1 safari version"
+ ]
+ }
+}
Review comment:
Sorry .I will correct it :)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] KishaniKandasamy commented on a change in pull request #141: upgrade: docusaurusV2
Posted by GitBox <gi...@apache.org>.
KishaniKandasamy commented on a change in pull request #141:
URL: https://github.com/apache/apisix-website/pull/141#discussion_r558837962
##########
File path: .gitignore
##########
@@ -1,12 +1,28 @@
+# dependencies
+website2.0/node_modules
Review comment:
Yes Juzhiyuan .It would be better to under have the root directory .
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] KishaniKandasamy commented on pull request #141: upgrade: docusaurusV2
Posted by GitBox <gi...@apache.org>.
KishaniKandasamy commented on pull request #141:
URL: https://github.com/apache/apisix-website/pull/141#issuecomment-760991002

I'm stuck at this point as **CompLibrary is deprecated in v2**. Therefore when I move pages/en files in v1 to src/pages in v2, It shows errror like "Cannot find module: CompLibrary".
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] juzhiyuan commented on a change in pull request #141: upgrade: docusaurusV2
Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on a change in pull request #141:
URL: https://github.com/apache/apisix-website/pull/141#discussion_r558824496
##########
File path: .gitignore
##########
@@ -1,12 +1,28 @@
+# dependencies
+website2.0/node_modules
Review comment:
Hi, could we omit the wesite2.0 directory? Set all needed files under the root directory directly is fine.
##########
File path: website2.0/static/css/custom.css
##########
@@ -0,0 +1,23 @@
+/**
Review comment:
After we migrated all needed files, we need to add ASF header here.
##########
File path: website2.0/package.json
##########
@@ -0,0 +1,30 @@
+{
+ "scripts": {
+ "examples": "docusaurus-examples",
+ "start": "docusaurus start",
+ "build": "docusaurus build",
+ "publish-gh-pages": "docusaurus-publish",
+ "write-translations": "docusaurus-write-translations",
+ "version": "docusaurus-version",
+ "rename-version": "docusaurus-rename-version",
+ "swizzle": "docusaurus swizzle",
+ "deploy": "docusaurus deploy",
+ "docusaurus": "docusaurus"
+ },
+ "devDependencies": {},
+ "dependencies": {
+ "@docusaurus/core": "2.0.0-alpha.70",
+ "@docusaurus/preset-classic": "2.0.0-alpha.70",
+ "clsx": "^1.1.1",
+ "react": "^16.10.2",
+ "react-dom": "^16.10.2"
+ },
+ "browserslist": {
+ "production": [">0.5%", "not dead", "not op_mini all"],
+ "development": [
+ "last 1 chrome version",
+ "last 1 firefox version",
+ "last 1 safari version"
+ ]
+ }
+}
Review comment:
We need a new line here :)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] KishaniKandasamy commented on pull request #141: upgrade: docusaurusV2
Posted by GitBox <gi...@apache.org>.
KishaniKandasamy commented on pull request #141:
URL: https://github.com/apache/apisix-website/pull/141#issuecomment-761545131
> Hi @KishaniKandasamy, I would prefer using Infima styles, but which one is easier for you, then we use it.
Hi Zhiyuan , Yes. If you give me sometime, I could solve this as I am not most familiar with Infima styles.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] KishaniKandasamy edited a comment on pull request #141: upgrade: docusaurusV2
Posted by GitBox <gi...@apache.org>.
KishaniKandasamy edited a comment on pull request #141:
URL: https://github.com/apache/apisix-website/pull/141#issuecomment-761545131
> Hi @KishaniKandasamy, I would prefer using Infima styles, but which one is easier for you, then we use it.
Hi Zhiyuan , Yes. If you give me sometime, I could solve this using Infima styles. as I am not most familiar with Infima styles.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] KishaniKandasamy edited a comment on pull request #141: upgrade: docusaurusV2
Posted by GitBox <gi...@apache.org>.
KishaniKandasamy edited a comment on pull request #141:
URL: https://github.com/apache/apisix-website/pull/141#issuecomment-761542436
Here the problem is Some parts of the migration can't be automated (**particularly the pages**), so we will have to migrate them manually.
Also CompLibrary is deprecated in v2. Therefore when I move pages/en files in v1 to src/pages in v2, It shows errror like "Cannot find module: CompLibrary".
The guide says to write our own React component or use Infima styles.So **First Do we need to modify the pages according to this** ?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] KishaniKandasamy commented on a change in pull request #141: upgrade: docusaurusV2
Posted by GitBox <gi...@apache.org>.
KishaniKandasamy commented on a change in pull request #141:
URL: https://github.com/apache/apisix-website/pull/141#discussion_r558836828
##########
File path: website2.0/static/css/custom.css
##########
@@ -0,0 +1,23 @@
+/**
Review comment:
yes Juzhiyuan
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] juzhiyuan commented on pull request #141: upgrade: docusaurusV2
Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on pull request #141:
URL: https://github.com/apache/apisix-website/pull/141#issuecomment-761541322
ok, just to make sure, this PR is created by the following steps:
1. using the command to auto migrate;
2. fix missing parts which that command cannot do.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] KishaniKandasamy commented on pull request #141: upgrade: docusaurusV2
Posted by GitBox <gi...@apache.org>.
KishaniKandasamy commented on pull request #141:
URL: https://github.com/apache/apisix-website/pull/141#issuecomment-761541722
> ok, just to make sure, this PR is created by the following steps:
>
> 1. using the command to auto migrate;
> 2. fix missing parts which that command cannot do.
Yes
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] KishaniKandasamy closed pull request #141: upgrade: docusaurusV2
Posted by GitBox <gi...@apache.org>.
KishaniKandasamy closed pull request #141:
URL: https://github.com/apache/apisix-website/pull/141
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] juzhiyuan commented on pull request #141: upgrade: docusaurusV2
Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on pull request #141:
URL: https://github.com/apache/apisix-website/pull/141#issuecomment-761526130
I see there has a cli to help us migrate.
https://v2.docusaurus.io/docs/migration/automated
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] juzhiyuan commented on pull request #141: upgrade: docusaurusV2
Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on pull request #141:
URL: https://github.com/apache/apisix-website/pull/141#issuecomment-761545624
Sure :)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] juzhiyuan commented on pull request #141: upgrade: docusaurusV2
Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on pull request #141:
URL: https://github.com/apache/apisix-website/pull/141#issuecomment-760996368
Great! We will review recently :)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] KishaniKandasamy commented on a change in pull request #141: upgrade: docusaurusV2
Posted by GitBox <gi...@apache.org>.
KishaniKandasamy commented on a change in pull request #141:
URL: https://github.com/apache/apisix-website/pull/141#discussion_r558836701
##########
File path: website2.0/package.json
##########
@@ -0,0 +1,30 @@
+{
+ "scripts": {
+ "examples": "docusaurus-examples",
+ "start": "docusaurus start",
+ "build": "docusaurus build",
+ "publish-gh-pages": "docusaurus-publish",
+ "write-translations": "docusaurus-write-translations",
+ "version": "docusaurus-version",
+ "rename-version": "docusaurus-rename-version",
+ "swizzle": "docusaurus swizzle",
+ "deploy": "docusaurus deploy",
+ "docusaurus": "docusaurus"
+ },
+ "devDependencies": {},
+ "dependencies": {
+ "@docusaurus/core": "2.0.0-alpha.70",
+ "@docusaurus/preset-classic": "2.0.0-alpha.70",
+ "clsx": "^1.1.1",
+ "react": "^16.10.2",
+ "react-dom": "^16.10.2"
+ },
+ "browserslist": {
+ "production": [">0.5%", "not dead", "not op_mini all"],
+ "development": [
+ "last 1 chrome version",
+ "last 1 firefox version",
+ "last 1 safari version"
+ ]
+ }
+}
Review comment:
oh Yes.Sorry .I will correct it :)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] KishaniKandasamy commented on pull request #141: upgrade: docusaurusV2
Posted by GitBox <gi...@apache.org>.
KishaniKandasamy commented on pull request #141:
URL: https://github.com/apache/apisix-website/pull/141#issuecomment-761542436
Here the problem is Some parts of the migration can't be automated (**particularly the pages**), so we will have to migrate them manually.
Also CompLibrary is deprecated in v2. Therefore when I move pages/en files in v1 to src/pages in v2, It shows errror like "Cannot find module: CompLibrary".
The guide says to write our own React component or use Infima styles.So **Do we need to modify our pages according to this** ?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-website] juzhiyuan commented on pull request #141: upgrade: docusaurusV2
Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on pull request #141:
URL: https://github.com/apache/apisix-website/pull/141#issuecomment-761543696
Hi @KishaniKandasamy, I would prefer using Infima styles, but which one is easier for you, then we use it.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org