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

Docs overhaul #1396

Merged
merged 8 commits into from
Aug 18, 2020
Merged

Docs overhaul #1396

merged 8 commits into from
Aug 18, 2020

Conversation

IanMadd
Copy link
Contributor

@IanMadd IanMadd commented Aug 4, 2020

Description

This is a bit of docs overhaul.

  • Migrates ctl_chef.md from chef-web-docs.
  • Removes all shortcodes from chef-workstation.
  • Updates README and makefile
  • Remove some templates that aren't necessary or used

Note: Netlify is not going to be able to build this PR preview because there are changes that I have to make with the theme in chef-web-docs after this PR and another PR in desktop-config are merged.

Related Issue

We're removing the shortcodes chef-workstation (and other repos) because they're not really working as intended.

The intent of shortcodes is that we have reusable text that will be identical no matter where it is added. The problem is that we are documenting the same things across multiple repos. We came up with the practice of adding shortcodes that are used in repos other than chef-web-docs by adding a prefix to each shortcode file name depending on the repository that they're added to, but we've ended up with multiple shortcodes that have slightly different names but the same text.

This creates problems if the text in a shortcode is updated in one repository, but the matching text is not updated in matching shortcodes in other repositories. The other issue we have is that some shortcodes are only used once in their repositories. Both of these issues defeats the purpose of shortcodes, which is that we have reusable text that can be used in multiple places and is identical no matter where it is added.

So now we'll just keep all shortcodes in chef-web-docs/themes/docs-new/layouts/shortcodes and all changes to that text should be made there.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (non-breaking change that does not add functionality or fix an issue)

Checklist:

  • I have read the CONTRIBUTING document.
  • I have run the pre-merge tests locally and they pass.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • All commits have been signed-off for the Developer Certificate of Origin.

@IanMadd IanMadd added the Aspect: Documentation How do we use this project? label Aug 4, 2020
@IanMadd IanMadd requested review from tyler-ball and kagarmoe August 4, 2020 19:16
@IanMadd IanMadd requested review from a team as code owners August 4, 2020 19:16
@netlify
Copy link

netlify bot commented Aug 4, 2020

Deploy preview for chef-workstation ready!

Built with commit c74aa63

https://deploy-preview-1396--chef-workstation.netlify.app

@tyler-ball
Copy link
Contributor

Error: Error building site: "/workdir/www/content/workstation/_index.md:17:1": failed to extract shortcode: template for shortcode "chef_workstation" not found
--
  | Makefile:37: recipe for target 'lint' failed

From the Buildkite failure. Do we need to re-fetch the git submodule? Or is this work still in flight on the chef-web-docs side?

@IanMadd
Copy link
Contributor Author

IanMadd commented Aug 4, 2020

@tyler-ball There are changes I have to make in chef-web-docs after this PR is merged.

Copy link

@kagarmoe kagarmoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tenor-104223260

@marcparadise
Copy link
Member

@IanMadd is there any way to get the deploy preview passing?

IanMadd added 6 commits August 13, 2020 12:42
Signed-off-by: IanMadd <imaddaus@chef.io>
Signed-off-by: IanMadd <imaddaus@chef.io>
Signed-off-by: IanMadd <imaddaus@chef.io>
Signed-off-by: IanMadd <imaddaus@chef.io>
Signed-off-by: IanMadd <imaddaus@chef.io>
Signed-off-by: IanMadd <imaddaus@chef.io>
@IanMadd IanMadd force-pushed the im/update_workstation_docs branch from 9e06316 to 1732ed5 Compare August 13, 2020 19:43
Signed-off-by: IanMadd <imaddaus@chef.io>
@IanMadd IanMadd force-pushed the im/update_workstation_docs branch from 1732ed5 to f3295d1 Compare August 13, 2020 22:31
@IanMadd
Copy link
Contributor Author

IanMadd commented Aug 13, 2020

@marcparadise That should take care of it.

@tyler-ball tyler-ball merged commit d755a1f into master Aug 18, 2020
@tyler-ball tyler-ball deleted the im/update_workstation_docs branch August 18, 2020 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Aspect: Documentation How do we use this project?
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants