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

Archive plugins.jquery.com, replace with static site #29

Closed
5 tasks done
Krinkle opened this issue Sep 9, 2023 · 20 comments
Closed
5 tasks done

Archive plugins.jquery.com, replace with static site #29

Krinkle opened this issue Sep 9, 2023 · 20 comments
Assignees
Labels
Service: Doc sites WordPress doc sites. Service: Miscweb Static sites and redirects.

Comments

@Krinkle
Copy link
Member

Krinkle commented Sep 9, 2023

Follow up from #6, in which we moved all ~20 doc sites to new infrastructure as simple standalone WordPress sites. There is one site we haven't migrated yet: https://plugins.jquery.com/.

This looks like a fairly stateful site, and also lacks a staging site. It includes several custom build steps that we haven't ported over yet, and I'm actually not sure that it would re-create the same site even if we do run it from scratch since the underlying sources may have dissappeared or significantly changed.

We could try to copy and upgrade the existing database as-is, but maybe we want to use this chance to turn it into a static site (like #10). Possibly a bit simpler and slimmed down only an index listing with a page for each plugin (URL-compatible) showing the plugin meta data (description, author, links to website/docs/bugs), so that it's easy for people to find what this points to and where to find source code, updates, contact persons, or forks going forward.

Remaining items

  • Search index improvements
  • Update https://learn.jquery.com/plugins/ with npm authoring note
  • Deploy plugins site to miscweb
  • Remove existing plugins site droplet
  • Transfer plugins repo to the jQuery org
@Krinkle Krinkle added the Service: Doc sites WordPress doc sites. label Sep 9, 2023
@Krinkle
Copy link
Member Author

Krinkle commented Sep 10, 2023

Some possibly relevant commits in the private infrastructure repo:

@Krinkle
Copy link
Member Author

Krinkle commented Oct 19, 2023

The site is still up but now pinned to a fixed of the jquery-wp-content repository to avoid subtle changes or breakage prior to its archiving. Especially given that this site runs on a much older version of WordPress, an older PHP, and
runs WordPress in the "Multisite" configuration which is significantly differennt from how other prod sites work, and therefore also different from the current local development and staging environment.

Keeping compatibility with that is basically impossible. It also enables some other change I have in mind to be done in a way that would be simpler if we don't need to keep compatibility with this setup in mind. Noting this here as I'll refer to this from those would-be-breaking commits.

@timmywil
Copy link
Member

timmywil commented Dec 20, 2023

The archive is available at https://github.com/timmywil/plugins.jquery.com with preview at https://timmywil.com/plugins.jquery.com/. I plan to move this repo to the jQuery org when we get closer to deployment.

@Krinkle
Copy link
Member Author

Krinkle commented Jan 8, 2024

@timmywil Looks good to me!

There's one thing I noticed that might make it a bit hard to use, which is the search feature seems to be indexing all pages, and all text on those pages. In particular, it is indexing non-latest versions of plugin pages, and non-content text.

For example,

  • ScrollMagic, results in many seemingly duplicate results for previous versions.
  • Jan, matches everything with a January release date, as opposed to things titled, described or authored by a "Jan".
  • school, matches all pages because of the "This version is old school" notice in the layout.
  • "view homepage", mathces all pages because of the "View Homepage" button in the layout.

If that's easy to exclude, that might be worthwhile. Otherwise, good to go!

I noticed this site has a different favicon than we normally use, it's in light blue instead of regular blue, and a bit smaller/more padding around it. It looks nice though, perhaps something to backport to jquery-wp-content/themes/*jquery.com/ and jquery-wp-content/themes/*jquery.org/`?

@timmywil
Copy link
Member

timmywil commented Jan 8, 2024

Yeah, I had just done the defaults, but we can certainly tweak the search index.

@Krinkle
Copy link
Member Author

Krinkle commented Feb 8, 2024

@timmywil Currently the site has the following sentence on the homepage:

We recommend moving to npm, using "jquery-plugin" as the keyword in your package.json. The npm blog has instructions for publishing your plugin to npm.

The static site has instead:

We do not recommend using any versions of plugins from this registry. Please find jQuery plugins on npm.

The mention of the keyword and link to blogpost seemed useful, but I haven't read it in detail. Do you agree?

@timmywil
Copy link
Member

timmywil commented Feb 8, 2024

I removed the blog post link because it was the legacy blog and I worry it may 404 at some point. But mostly, I think the audience needs to change. The former assumed the reader was a jQuery plugin author, but I think the majority of readers will be those searching for jQuery plugins, in which case the mention of the "jquery-plugin" keyword is confusing. The link to npm does still have the jquery-plugin keyword so that they can find jQuery plugins, but plugin authoring docs should go elsewhere.

@mgol
Copy link
Member

mgol commented Feb 8, 2024

If we're worried about the page getting 404'd, we can link to Web Archive (https://web.archive.org/web/20230909014003/https://blog.npmjs.org/post/111475741445/publishing-your-jquery-plugin-to-npm-the-quick). But I understand the audience argument. The issue is, though, that if authoring docs should go elsewhere then it'd be good to have them in that place. Right now we remove without a replacement.

@Krinkle
Copy link
Member Author

Krinkle commented Feb 8, 2024

Perhaps a new page on jquery.com would make sense, e.g. jquery.com/plugins/, or something to add to https://learn.jquery.com/plugins/.

The existing link on jquery.com named "Plugins" can then be pointed to that instead, and from the plugins.jquery.com homepage we can point there as well with a label like "Learn more about authoring and publishing plugins".

@timmywil
Copy link
Member

timmywil commented Feb 8, 2024

I like that idea. I say we can update the existing learn page.

@mgol
Copy link
Member

mgol commented Feb 8, 2024

That works for me but I’d prefer to have the learn page updated before we switch the plugins site to one without this text.

@timmywil
Copy link
Member

timmywil commented Feb 8, 2024

I've added a checklist to the ticket description

@timmywil
Copy link
Member

timmywil commented Apr 7, 2024

Search indexing has been refined on https://timmywil.com/plugins.jquery.com/. I think I addressed all the examples in Timo's comment above, but I left in matching on dates. I could see that being useful, but not in the form it was in before. Now, it matches on author name first and it only matches on the date the latest version of the plugin was released, as opposed to matching on all plugin version release dates, which pretty much matched all plugins.

Krinkle added a commit to Krinkle/plugins.jquery.com that referenced this issue Apr 7, 2024
* Update label from JSF to OpenJSF, follows-up 50cbaf8.
* Update support/evenets links to match current jquery.com.
* Remove "Plugins" from global nav, since it's merely a self-link here and likely not to stay on the main sites.

Ref jquery/infrastructure-puppet#29
timmywil pushed a commit to jquery/plugins.jquery.com-static that referenced this issue Apr 9, 2024
* Update label from JSF to OpenJSF, follows-up 50cbaf8.
* Update support/evenets links to match current jquery.com.
* Remove "Plugins" from global nav, since it's merely a self-link here and likely not to stay on the main sites.

Ref jquery/infrastructure-puppet#29
@timmywil
Copy link
Member

timmywil commented Apr 9, 2024

Added a page to the learn site for publishing to npm: jquery/learn.jquery.com#818

@timmywil
Copy link
Member

Unless @Krinkle or @mgol see anything else, I think we're ready to deploy the static plugins site.

@Krinkle
Copy link
Member Author

Krinkle commented Apr 11, 2024

@timmywil When you transfer the repo, I suggest picking a slightly longer (or different) name than plugins.jquery.com so as to not overwrite the invisible https://github.com/jquery/plugins.jquery.com/ redirect (e.g. for jquery-archive/plugins.jquery.com#161) for the repo that used to be there, and its permalinks.

So next step.. puppetise alongside the bugs static sites?

@timmywil
Copy link
Member

I suggest picking a slightly longer (or different) name than plugins.jquery.com

Will do. Should I do that before deployment?

puppetise alongside the bugs static sites?

yes, that sounds right.

@Krinkle
Copy link
Member Author

Krinkle commented Apr 11, 2024

I suggest picking a slightly longer (or different) name than plugins.jquery.com

Will do. Should I do that before deployment?

Yeah, I think we'll want to have prod pull/subscribe to the content from within the jquery org.

@timmywil
Copy link
Member

Transferred to https://github.com/jquery/plugins.jquery.com-static and added infrastructure team.

Krinkle added a commit to jquery/jquery.com that referenced this issue Apr 17, 2024
* Enable the h1 heading. The page content has no custom h1 of its own
  so looks out of place with other pages on jquery.com.

* Invert the order of some paragraphs so that links are clear and at
  the top, with a single recommended option each time and then other
  links in a bullet list after it.

  E.g. there is now an actual "Download jQuery 3.7.1" button,
  describing over top that it is the compressed production version,
  and then a list of other links.

  Explanations of these files now follow the list instead of being in
  front of it, thus burying the links less.

* Promote link to browse releases.jquery.com to the first section.

  I've personally never used the links that were in the first section
  previously as they always felt like too much text to read. When
  I land on the releases list, I know what each variant is and feel
  more confident that I'm getting the right one instead of reading the
  long link labels. If we like this direction and shorter links, taking
  into account that many people probably already "start" at
  releases.jquery.com based on links to there from other places and
  thus only see the short versions there, we could also explore
  shortening the labels here. I've not done that in this commit yet.

* Remove outdated info about source maps still being a future/emerging
  technology.

* Remove instructions for Bower.

* Improve "Yarn" CLI link readability by giving it the full term as
  its link label, "Yarn CLI" instead of only partly linked.

* Improve "npm" sentence by linking "npm" and then naming
  "jquery package" in the second link.

* Update Pre-Release section to link to releases site instead of
  to a single file, since there are now quite a lot of variants of
  this file that people may want to choose between.

* Update "jQuery CDN" section heading to link to the releases site
  from its name, and remove outdated sponsorship mention.

* Improve "Other CDNs" by applying the bolding more focussedly
  (when an entire paragraph is bold, it's the same as bolding nothing,
  is my rule of thumb). Ensure the bolded portion is readable and
  understandable by itself.

* Remove "Build from Git" section, covered by README where it is
  presumably more up to date. This is linked to from "About the code".

* Remove mention of closed jQuery Forum from "About the code",
  instead link to "Report a bug", matching the link chosen at
  jquery/jquery-wp-content#220.

* Remove mention of plugins.jquery.com from "About the code".
  Ref jquery/infrastructure-puppet#29.
Krinkle added a commit to jquery/jquery.com that referenced this issue Apr 17, 2024
* Enable the h1 heading. The page content has no custom h1 of its own
  so looks out of place with other pages on jquery.com.

* Invert the order of some paragraphs so that links are clear and at
  the top, with a single recommended option each time and then other
  links in a bullet list after it.

  E.g. there is now an actual "Download jQuery 3.7.1" button,
  describing over top that it is the compressed production version,
  and then a list of other links.

  Explanations of these files now follow the list instead of being in
  front of it, thus burying the links less.

* Promote link to browse releases.jquery.com to the first section.

  I've personally never used the links that were in the first section
  previously as they always felt like too much text to read. When
  I land on the releases list, I know what each variant is and feel
  more confident that I'm getting the right one instead of reading the
  long link labels. If we like this direction and shorter links, taking
  into account that many people probably already "start" at
  releases.jquery.com based on links to there from other places and
  thus only see the short versions there, we could also explore
  shortening the labels here. I've not done that in this commit yet.

* Remove outdated info about source maps still being a future/emerging
  technology.

* Remove instructions for Bower.

* Improve "Yarn" CLI link readability by giving it the full term as
  its link label, "Yarn CLI" instead of only partly linked.

* Improve "npm" sentence by linking "npm" and then naming
  "jquery package" in the second link.

* Update Pre-Release section to link to releases site instead of
  to a single file, since there are now quite a lot of variants of
  this file that people may want to choose between.

* Update "jQuery CDN" section heading to link to the releases site
  from its name, and remove outdated sponsorship mention.

* Improve "Other CDNs" by applying the bolding more focussedly
  (when an entire paragraph is bold, it's the same as bolding nothing,
  is my rule of thumb). Ensure the bolded portion is readable and
  understandable by itself.

* Remove "Build from Git" section, covered by README where it is
  presumably more up to date. This is linked to from "About the code".

* Remove mention of closed jQuery Forum from "About the code",
  instead link to "Report a bug", matching the link chosen at
  jquery/jquery-wp-content#220.

* Remove mention of plugins.jquery.com from "About the code".
  Ref jquery/infrastructure-puppet#29.
Krinkle added a commit to jquery/jquery.com that referenced this issue Apr 19, 2024
* Enable the h1 heading. The page content has no custom h1 of its own
  so looks out of place with other pages on jquery.com.

* Invert the order of some paragraphs so that links are clear and at
  the top, with a single recommended option each time and then other
  links in a bullet list after it.

  E.g. there is now an actual "Download jQuery 3.7.1" button,
  describing over top that it is the compressed production version,
  and then a list of other links.

  Explanations of these files now follow the list instead of being in
  front of it, thus burying the links less.

* Promote link to browse releases.jquery.com to the first section.

  I've personally never used the links that were in the first section
  previously as they always felt like too much text to read. When
  I land on the releases list, I know what each variant is and feel
  more confident that I'm getting the right one instead of reading the
  long link labels. If we like this direction and shorter links, taking
  into account that many people probably already "start" at
  releases.jquery.com based on links to there from other places and
  thus only see the short versions there, we could also explore
  shortening the labels here. I've not done that in this commit yet.

* Remove outdated info about source maps still being a future/emerging
  technology.

* Remove instructions for Bower.

* Improve "Yarn" CLI link readability by giving it the full term as
  its link label, "Yarn CLI" instead of only partly linked.

* Improve "npm" sentence by linking "npm" and then naming
  "jquery package" in the second link.

* Update Pre-Release section to link to releases site instead of
  to a single file, since there are now quite a lot of variants of
  this file that people may want to choose between.

* Update "jQuery CDN" section heading to link to the releases site
  from its name, and remove outdated sponsorship mention.

* Improve "Other CDNs" by applying the bolding more focussedly
  (when an entire paragraph is bold, it's the same as bolding nothing,
  is my rule of thumb). Ensure the bolded portion is readable and
  understandable by itself.

* Remove "Build from Git" section, covered by README where it is
  presumably more up to date. This is linked to from "About the code".

* Remove mention of closed jQuery Forum from "About the code",
  instead link to "Report a bug", matching the link chosen at
  jquery/jquery-wp-content#220.

* Remove mention of plugins.jquery.com from "About the code".
  Ref jquery/infrastructure-puppet#29.
timmywil added a commit to timmywil/infrastructure-puppet that referenced this issue Apr 23, 2024
timmywil added a commit to timmywil/infrastructure-puppet that referenced this issue Apr 23, 2024
timmywil added a commit that referenced this issue Apr 23, 2024
@Krinkle
Copy link
Member Author

Krinkle commented Apr 24, 2024

  • Remove existing plugins site droplet

I've ticked this off with the droplet being turned off. I'll track the last decom step in #8.

@Krinkle Krinkle closed this as completed Apr 24, 2024
@Krinkle Krinkle added the Service: Miscweb Static sites and redirects. label Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Service: Doc sites WordPress doc sites. Service: Miscweb Static sites and redirects.
Development

No branches or pull requests

3 participants