Migrate the Magma website from v1 to v2 #6654
Replies: 19 comments
-
cc @lisa761 |
Beta Was this translation helpful? Give feedback.
-
What I see:
Notes and questions:
That does not look like a site too complex to migrate. @jaredmullane can you please give us some additional details about your expectations (ie what is good enough for you to be deployed in production, what should be kept or ditched?) @lisa761 can you please see with MLH if you can fork this repo? |
Beta Was this translation helpful? Give feedback.
-
Hi @slorber, thanks for the help! The master docs are kept under the It would be great if we could add a lightweight homepage like Flux (https://facebook.github.io/flux/) but in terms of the documentation side there is nothing major to ditch. We can always add those changes on our side as well on as we are planning on reorganizing our Docusaurus page next month. Thanks again. |
Beta Was this translation helpful? Give feedback.
-
Thanks Why are the docs in /readmes, that looks quite unusual 😅 Do you use Docker in dev or you just run yarn start?
Actually, you have a homepage already but you "overwrite" it with a JS redirect here: https://github.com/magma/magma/blob/master/docs/docusaurus/static/index.html The Flux homepage is basically the default Docusaurus homepage so it shouldn't be too hard to set this up 😆
Yes we don't plan to remove any doc, I was just wondering what particular v1 site features you really care about or whatever. What we could do is just do the bare v1-v2 migration, deploy a preview, ask for feedbacks and you tell us what's missing (or even commit to the PR directly if you want to contribute to the migration effort) |
Beta Was this translation helpful? Give feedback.
-
I am not sure on this one. The docusaurus was set up before I began working on the product.
I believe the Docker portion is just to run it in dev. My sense is we should just do
That would be great. Thanks again! |
Beta Was this translation helpful? Give feedback.
-
Just want to double check, is there anything else you need from our side @slorber? Thanks again for all the help and hope that you have a great weekend. :) |
Beta Was this translation helpful? Give feedback.
-
I have been going through the migration process on my own, however, when I run 'yarn start' I am getting an error message related to duplicate titles for all my docs. Have you @slorber encountered that issue before? Thanks! |
Beta Was this translation helpful? Give feedback.
-
sorry for the delay @jaredmullane , unfortunately I didn't have time to help you and the MLH session is already reaching its end. If you have a public Github branch I can help you there (If you give me write access) or review the code.
This is a new warning that we introduced recently. In alpha.73 there's an env variable to disable it. We may simply remove it if it becomes annoying for too many users. This warning is emitted when a markdown doc contains multiple h1 headings:
Doing so is a bad practice that you should rather avoid. Asked the community here: https://twitter.com/sebastienlorber/status/1379416531235405832 If you want to keep this double title pattern in your docs, I'm curious to understand your motivations. |
Beta Was this translation helpful? Give feedback.
-
No worries @slorber! It is strange because the files being flagged but that error message only have one title (see below). Could be something with the versioned docs. I will keep messing around with it. The repo that I am trying to migrate is Magma with my branch here. Definitely appreciate any insight or help and hope that you have a great weekend! |
Beta Was this translation helpful? Give feedback.
-
On this url, I still see a Docusaurus v1 website: https://github.com/jaredmullane/magma/tree/docusaurus-migration/docs/docusaurus Have you pushed your initial migration work for me to take a look? How can I help exactly? The error It was due to having duplicate top-level titles in both md + frontmatter, for example:
|
Beta Was this translation helpful? Give feedback.
-
Hey @slorber I forgot to push the latest to that branch but should be good now at that link above. Sorry for that! That should contain the initial migration work I have started. I am just trying to migrate it fully to v2. |
Beta Was this translation helpful? Give feedback.
-
Hey, I've opened a PR to your fork, fixing a few migration issues for you: jaredmullane/magma#24 Will add inline comments so that you understand the changes |
Beta Was this translation helpful? Give feedback.
-
Can't thank you enough @slorber for all the help!! Really appreciate all the support :) |
Beta Was this translation helpful? Give feedback.
-
Thanks :) Let me know if you have any question or if you are stuck with the migration |
Beta Was this translation helpful? Give feedback.
-
I had created a new repo here where I have updated our migration. We ended up having to change some of the versioned docs but otherwise it works. We are able to successfully deploy the website (v2-website folder is the new folder), however the only issue now is our docs, versioned docs, and sidebars don't deploy. Does anything look off in our docusaurus.config.js file to you? Thanks so much again for the help! |
Beta Was this translation helpful? Give feedback.
-
I don't understand what you mean sorry 😅
Not sure what to look for as. I don't understand the problem. However I see that you reverted some config changes that I did on purpose here: https://github.com/jaredmullane/magma/pull/24/files cf your current config not using the new docsVersionDropdown navbar item: https://github.com/jaredmullane/docu_2/blob/master/v2-website/docusaurus.config.js#L65 |
Beta Was this translation helpful? Give feedback.
-
Hello @slorber , thanks for looking. We still have 2 pending issues:
|
Beta Was this translation helpful? Give feedback.
-
About the .html suffix, the best would be to setup server-side redirects (better for SEO) but this is out of the scope of Docusaurus (server features depends on your host). As a good enough solution, we have a @docusaurus/plugin-client-redirects that can help you redirect If you have incoming links to your doc with the .html extension, I'd rather remove that extension For the broken images, I don't know, afaik they were not broken in my PR here so wonder what you changed? It would be much more convenient for me to inspect a prod build where I can see/inspect the problem you have, as you just have to give me an url. |
Beta Was this translation helpful? Give feedback.
-
📚 Documentation
The Magma team would like their site migrated from Docusaurus v1 to v2.
https://magma.github.io/magma/
Have you read the Contributing Guidelines on issues?
Yes
Beta Was this translation helpful? Give feedback.
All reactions