wptide / docs

Tide is an automated tool to provide insight into WordPress code and highlight areas to improve the quality of plugins and themes.
https://wptide.org/
MIT License
24 stars 14 forks source link

Refactor to mimic wp-cli docs process #9

Open jeffpaul opened 6 years ago

jeffpaul commented 6 years ago

See: https://github.com/wp-cli/handbook/. Specifically:

All documentation is imported automatically into WordPress.org in a two step process:

  1. WordPress reads commands-manifest.json or handbook-manifest.json to understand all pages that need to be created.
    1. Each WordPress page has a markdown_source attribute specifying a Markdown file to be fetched, converted to HTML, and saved in the database.

For make.wordpress.org/cli, the import process is a WordPress plugin running a WP Cron job every 15 minutes. For developer.wordpress.org/cli, this is a class in the devhub theme running a WP Cron job every 12 hours.

Our current docs site is being spun up quickly for WCEU, but as we look to refactor that to be a more maintainable site we should consider recommendations from other WP teams. We can check with the Meta and Support teams to see if they have any best practice recommendations.

jeffpaul commented 6 years ago

Per bugscrub today, we're keeping this in the 1.0.0 release as it's part of the work that is still left to fix the build process for the docs site.

jeffpaul commented 5 years ago

There's also a wp-github-sync plugin (and a couple other plugins/theme tweaks) that could be used to keep markdown files in a GitHub repo synchronized with posts in WordPress. I've functionally proven that in a local environment and personal repo, so if we decide to alter our process and stop using docpress then I've found another option for us.

valendesigns commented 5 years ago

Right now we've got the docs in a pretty good place and probably will not be making this change.

jeffpaul commented 4 years ago

I worked on refactoring the docs to remove docpress and simplify to GitHub Pages, just waiting on the GitHub Pages deployment process to catch up to all my commits. My forked repo is here: https://github.com/jeffpaul/docs. Sample docs site is here: https://jeffpaul.github.io/docs/. If I can get things cleaned up a bit (once GitHub Pages deploys catch up to my commits), then I’ll open a PR to merge my changes upstream and we can assign the wptide.org domain to the GitHub Page and be done with the docpress mess.

derekherman commented 4 years ago

@jeffpaul how is this going to work as a WordPress theme?

jeffpaul commented 4 years ago

@derekherman skipping WP, having docs live separately as their own repo