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

😎 Get swag for migrating websites to Docusaurus 2! #1834

Closed
yangshun opened this issue Oct 12, 2019 · 80 comments
Closed

😎 Get swag for migrating websites to Docusaurus 2! #1834

yangshun opened this issue Oct 12, 2019 · 80 comments

Comments

@yangshun
Copy link
Contributor

yangshun commented Oct 12, 2019

Tip: This is a task that requires at least a few hours of commitment (can be more, depending on the website) and it targeted at people who want to learn more about Docusaurus and Open Source.

Docusaurus 2 has reached a mature alpha stage. We want to help some existing Docusaurus 1 sites migrate to Docusaurus 2. We've done this ourselves for Create React App (PR) and Flux (PR). But just the few of us isn't enough. We need your help.

We have shortlisted the following sites using Docusaurus 1 which we want to migrate to Docusaurus 2: https://docs.google.com/spreadsheets/d/18SWTklRJVvOTOQEStTo8LXBc78ZMFdbdwp2EEJK5q8g/edit?usp=sharing).

Instructions

  • You should be somewhat familiar with using Docusaurus before attempting the task. Otherwise, you can follow our Docusaurus 1 tutorial and Docusaurus 2 Getting Started

  • Comment below to get dibs on the website you're interested in helping to migrate. Make sure it's not already claimed

  • Find the GitHub repo to the website you want to claim

  • File an issue on the GitHub project with the following details

  • If the project maintainer gives the green light, then go ahead and start the migration process

Pre-Migration

  • Navigate to every page of the website and see if there's anything special about the page (e.g. importing extra scripts)
  • Look at the docs files to do a sanity check that the user didn't add anything that Docusaurus 2 doesn't support (e.g. custom markdown syntax)
  • If there are any unsupported things, you can check back with us or ping us in the #docusaurus-1-to-2-migration Discord channel

Migration

  • Follow the v1 to v2 migration guide here
  • You should look at the website/siteConfig.js and address every field (either migrate it or remove it (but take note of it))
  • There will probably be syntax issues in their Markdown docs that is not compatible with with Docusaurus 2's MDX parser. Most of them should be easy to fix
  • v2 uses a different CSS framework and it is not necessary to make the landing page components look exactly like v1 (referring to the call-to-action button and the footer). Most importantly is contents, then the layout. Fine-grain differences in visual appearance of individual components is acceptable and probably intended
  • Do not swizzle the Footer just to add the logo on the left. The logo is intentionally removed in v2. Just configure the footer via the docusaurus.config.js's themeConfig.footer properties.
  • As long as you have the same contents you should be good
  • The following code could be helpful for migration of various pages
  • For Docusaurus 2, we built a CSS framework called Infima. More guidance on styling can be found here
  • You might want to refer to our PRs for Create React App and Flux as examples of how a migration for a basic Docusaurus v1 site can be done

Post-Migration

  • Check the project's CI to update the path of the build directory (generated files are in build/ instead of build/{projectName} in v2)
  • Navigate to every page, checking for broken links and broken images
  • Check that the index page and doc page look fine on mobile
  • Make a PR.
    • At the minimum, you should include some screenshots
    • If possible, you can try to host the built website somewhere using hosting services like Now or GitHub pages. This step is important in giving project owners the confidence that the migration doesn't break anything. They can click around and try the shiny migrated Docusaurus 2 website
    • List down features that were removed (due to Docusaurus 2 not supporting or whatever other reasons there may be)
    • Tag @yangshun in the PR you create, and link it to this issue so we can better track the open migration PRs
  • PR gets approved and merged by project maintainer(s)
  • ????
  • Profit!

Thank You!

We'll be sending Facebook Open Source stickers to contributors who successfully complete migrate a website. If you migrate 3 websites, we'll send you a Docusaurus plushie!

P.S. Hacktoberfest is going on now and you could get a fancy free t-shirt by submitting PRs!

For any questions regarding the migration, either comment below or ask in our #docusaurus-1-to-2-migration Discord channel (preferred).


I'll check in with you every once in a while on the progress. Note that it's totally ok to unclaim a website for any reason, we understand 😊

P.S. If there's a Docusaurus 1 website not listed here, it means we don't have the bandwidth to support the migration. You are free to initiate a migration issue on other projects but support from the Docusaurus core team will be limited as we prioritize supporting our own projects.

@Croftyland
Copy link

Croftyland commented Oct 12, 2019

@AMashoshyna
Copy link

Hi, can I please take https://testing-library.com/?

@ahmadalfy
Copy link
Contributor

I would love to claim https://facebook.github.io/watchman/

@shovanmaity
Copy link

hi can I please take -
https://testing-library.com/

@dtaylorbrown
Copy link

Hi, I would love to do: https://facebookincubator.github.io/fbt/

@yangshun
Copy link
Contributor Author

yangshun commented Oct 12, 2019

@Croftyland Thanks for your enthusiasm! In general we prefer that you do one at a time so that you have a better idea of how doing one is like, and don't end up overcommitting. It's fine for now but feel free to let us know if it's too much and you would like to put some websites "up for grabs".

@AMashoshyna Definitely!

@ahmadalfy Of course! That'll be challenging! P.S. Nice to see you again

@imazik Thanks but it has been claimed by @AMashoshyna. There are many others. Find another one?

@sshhdaniella Absolutely!

@diegowifi
Copy link

diegowifi commented Oct 12, 2019

Hi @yangshun

I would like to migrate https://pybowler.io/

@yangshun
Copy link
Contributor Author

@diegowifi Sure thing, it's yours!

@yangshun yangshun changed the title 🌟 Help us migrate websites to Docusaurus 2! 🌟 Get swag for migrating websites to Docusaurus 2! Oct 12, 2019
@yangshun yangshun changed the title 🌟 Get swag for migrating websites to Docusaurus 2! 😎 Get swag for migrating websites to Docusaurus 2! Oct 12, 2019
@ThakurKarthik
Copy link
Contributor

Hi @yangshun can i take https://fbredex.com/ . This will be my first issue for open source ! <3

@ozgunbal
Copy link

ozgunbal commented Oct 13, 2019

Hi @yangshun I posted migration request to https://facebook.github.io/react-360/ . I'm waiting green light from them 😃

Edit: After trial of local migration, I decided to help for https://www.fbidb.io/ and https://facebookincubator.github.io/profilo/ , too.

@lzhuor
Copy link

lzhuor commented Oct 13, 2019

Hi @yangshun, may I take https://fasttext.cc/blog/ ? Thank you.

@yangshun
Copy link
Contributor Author

yangshun commented Oct 13, 2019

@ThakurKarthik Great, welcome to open source! Do note that migration work is non-trivial and could be overwhelming to people who are new to open source

@ozgunbal Sure thing, thanks! I recommend you just take one first though.

@lzhuor Do you mean the entire site or just the blog? Either way, sure!

@jesuslerma
Copy link

Hi @yangshun

I would like to migrate https://www.fbidb.io

@endiliey endiliey added 2.x help wanted Asking for outside help and/or contributions to this particular issue or PR. labels Oct 15, 2019
@dnafication
Copy link

Hi @yangshun I would like to work on https://myrocks.io/
Is there any specific timeline to complete this?

@fanny
Copy link
Contributor

fanny commented Mar 13, 2020

Done facebook/watchman#787

facebook-github-bot pushed a commit to facebook/idb that referenced this issue Mar 13, 2020
Summary:
<!--
Thank you for sending the PR! We appreciate you spending the time to work on these changes.

Help us understand your motivation by explaining why you decided to make this change.

You can learn more about contributing to `idb` here: https://github.com/facebook/idb/blob/master/.github/CONTRIBUTING.md

Happy contributing!

-->

## Motivation

Migrates idb website to Docusaurus v2. This [issue](facebook/docusaurus#1834) has more information. Additionally, there are some doc fixes.

Fixes #564
Pull Request resolved: #582

Test Plan:
Try it out here: https://idb.scottlee.now.sh

v2 screenshot:
![Screen Shot 2020-02-22 at 11 13 06 AM](https://user-images.githubusercontent.com/7443383/75097865-5f2b8680-5564-11ea-982a-6dbec989ee68.png)

## Related PRs

N/A

/cc yangshun

Reviewed By: lawrencelomax

Differential Revision: D20065823

Pulled By: scottilee

fbshipit-source-id: 47618972c56202caf5e720fdb9b15855d8160775
@imrishabh18
Copy link

imrishabh18 commented Apr 2, 2020

@yangshun Is any migration still left ?

@shujathkhan
Copy link

Hey @yangshun is https://ax.dev still up for grabs? Would like to take it up

@JapneetSingh5
Copy link

Hi @yangshun, I'm currently working on migrating webdriver.io to v2. Are the stickers and your guidance still up for grabs? :p

@slorber
Copy link
Collaborator

slorber commented Jul 10, 2020

Hey all, and @JapneetSingh5

We are working on a migration cli for v1->v2 migration, if you want to try it, get in touch

If you still have a v1 site to migrate, report it here: #3035

@HeroicHitesh
Copy link

@slorber I am interested in contributing. Where and how can I start the migration work?

@slorber
Copy link
Collaborator

slorber commented Jul 10, 2020

@HeroicHitesh as we are working on a migration cli, it's not worth migrating sites manually anymore. If you want to contribute to some other parts, we can get in touch on Discord

@vj-codes
Copy link

@slorber Anything still left?I would love to contribute!

@slorber
Copy link
Collaborator

slorber commented Aug 20, 2020

Hi @vj-codes

We have many v1 sites left to migrate but they are rather complex ones. We are currently working on ReactNative website, and later this will likely be Jest. These sites are complex and will help us understand what features in v2 are missing.

I don't know exactly which easy v1 sites easy to migrate are left but if you find one or if someone ask for help here on Discord, don't hesitate ;)

Note, a first version of the migration cli has been published, but there are improvements that can be made

@Piyush-Chandel7
Copy link

I would like take https://github.com/hhvm/hacklang.org ... should i take ?

@slorber
Copy link
Collaborator

slorber commented Nov 24, 2020

Hi @piyush-chandel

I can't tell. myself if Hacklang is interested to migrate to Docusaurus 2 so it is a good idea to ask them first.
It looks to me this is a highly customized v1 site, and it does not look like an easy one to migrate.

@davidjgoss
Copy link
Contributor

I'm keen to have a go at migrating https://ax.dev/ using the migration CLI, can I claim that one?

@slorber
Copy link
Collaborator

slorber commented Jan 4, 2021

@davidjgoss I think the excel is a bit outdated and not easy to tell if this site is good to be migrated without reaching to the maintainers.

@davidjgoss
Copy link
Contributor

@slorber thanks, I'll ask them

@yangshun
Copy link
Contributor Author

I think we're done with this issue!

@singhankit62000
Copy link

Hey I'd like to migrate https://hhvm.github.io/hack-codegen/

@codewithpom
Copy link

@yangshun Is this still active so I can help.

@slorber
Copy link
Collaborator

slorber commented Nov 12, 2021

No this is not an active issue anymore.

@sonujangra27
Copy link

is it still active?

@slorber slorber removed the help wanted Asking for outside help and/or contributions to this particular issue or PR. label Nov 2, 2022
@yangshun
Copy link
Contributor Author

yangshun commented Nov 2, 2022 via email

EduardoCostaom pushed a commit to EduardoCostaom/profilo that referenced this issue Nov 2, 2022
Summary:
- Live version: https://build.ozgunbal.now.sh/
- I only removed github star counts below `Get Started` button at v1:
![image](https://user-images.githubusercontent.com/16080180/66868638-60d9b200-efa6-11e9-9e58-a8638b93d04e.png)
It can be added if it's necessary but IMHO, doesn't look good with new theme.
- Hey, yangshun and endiliey . You can check it when you're available.
- This PR related to facebookarchive/profilo#46 and facebook/docusaurus#1834
Pull Request resolved: facebookarchive/profilo#47

Differential Revision: D18064160

Pulled By: BurntBrunch

fbshipit-source-id: 70b67a519455f3072246373661966e0bd6f84c36
@Nihat217716
Copy link

Comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests