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

Fix sub-department cop doc generation #10013

Merged
merged 1 commit into from Aug 15, 2021

Commits on Aug 14, 2021

  1. Fix sub-department cop doc generation

    If you go to https://docs.rubocop.org/rubocop-rspec/2.0/upgrade_to_version_2.html, links to the second-level cops docs are broken. The last one is correct, https://docs.rubocop.org/rubocop-rspec/2.0/cops_rspec.html, while others have anchors, e.g. https://docs.rubocop.org/rubocop-rspec/2.0/upgrade_to_version_2.html#cops_capybara.adoc. This is probably due to `cops_docs.adoc` vs `cops_docs/` name clash.
    
    Suspect: https://docs.antora.org/antora/2.3/page/page-id/#important
    
    Ideally, we would generate `cops_rspec_capybara.adoc` instead of `cops_rspec/capybara.adoc.`
    
    Other RuboCop extensions don't seem to make use of sub-departments, and will be unaffected by this change.
    pirj committed Aug 14, 2021
    Configuration menu
    Copy the full SHA
    2c00072 View commit details
    Browse the repository at this point in the history