-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Added migration/index.asciidoc generation support #87318
Added migration/index.asciidoc generation support #87318
Conversation
@@ -0,0 +1,35 @@ | |||
[[breaking-changes]] | |||
= Migration guide |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps it would make more sense to have this template file contain nothing but the dynamic bits at the bottom, together with an include directive for the main content which should be in the docs section, and not in the template, for easier editing.
@@ -180,6 +180,28 @@ public void getVersions_includesCurrentVersion() { | |||
); | |||
} | |||
|
|||
/** | |||
* Check that when deriving a lit of major.minor versions from git tags, the current unreleased version is included. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spelling of list
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And included should be excluded.
Pinging @elastic/es-docs (Team:Docs) |
49a49e8
to
b5d3bb5
Compare
* This class ensures that the migrate/index page has the appropriate anchors and include directives | ||
* for the current repository version. | ||
*/ | ||
public class MigrateIndexGenerator { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Elsewhere it is migration
not migrate
so perhaps change name for consistency.
b5d3bb5
to
8ae4c50
Compare
...nternal/src/main/java/org/elasticsearch/gradle/internal/release/MigrationIndexGenerator.java
Show resolved
Hide resolved
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/release/MinorVersion.java
Outdated
Show resolved
Hide resolved
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/release/MinorVersion.java
Outdated
Show resolved
Hide resolved
…ternal/release/MinorVersion.java Co-authored-by: Rory Hunter <[email protected]>
…ternal/release/MinorVersion.java Co-authored-by: Rory Hunter <[email protected]>
Including extracting static content from migration/index, so the template would be as light as possible. The reason for this work is because the gradle task `generateReleaseNotes` was not correctly adding new links and imports to the migrations/index and that caused documentation to fail building for 8.3.0.
* Generate release notes for v8.3.0 * [DOCS] Add 8.3 migration file to index * Fixed version number * Fix formatting of deprecation in 85326 * Use asciidoc format for deprecations * Extract static content from migration/index * This was just an enhancement * Nope, it was an upgrade * Added migration/index.asciidoc generation support (#87318) Including extracting static content from migration/index, so the template would be as light as possible. The reason for this work is because the gradle task `generateReleaseNotes` was not correctly adding new links and imports to the migrations/index and that caused documentation to fail building for 8.3.0. * [DOCS] Add ml-cpp PRs to release notes * Added back incorrectly deleted changlog * Added missing highlight * Fixed spelling of StackOverflowError Co-authored-by: lcawl <[email protected]>
* Generate release notes for v8.3.0 * [DOCS] Add 8.3 migration file to index * Fixed version number * Fix formatting of deprecation in 85326 * Use asciidoc format for deprecations * Extract static content from migration/index * This was just an enhancement * Nope, it was an upgrade * Added migration/index.asciidoc generation support (elastic#87318) Including extracting static content from migration/index, so the template would be as light as possible. The reason for this work is because the gradle task `generateReleaseNotes` was not correctly adding new links and imports to the migrations/index and that caused documentation to fail building for 8.3.0. * [DOCS] Add ml-cpp PRs to release notes * Added back incorrectly deleted changlog * Added missing highlight * Fixed spelling of StackOverflowError Co-authored-by: lcawl <[email protected]>
* Generate release notes for v8.3.0 (#87294) * Generate release notes for v8.3.0 * [DOCS] Add 8.3 migration file to index * Fixed version number * Fix formatting of deprecation in 85326 * Use asciidoc format for deprecations * Extract static content from migration/index * This was just an enhancement * Nope, it was an upgrade * Added migration/index.asciidoc generation support (#87318) Including extracting static content from migration/index, so the template would be as light as possible. The reason for this work is because the gradle task `generateReleaseNotes` was not correctly adding new links and imports to the migrations/index and that caused documentation to fail building for 8.3.0. * [DOCS] Add ml-cpp PRs to release notes * Added back incorrectly deleted changlog * Added missing highlight * Fixed spelling of StackOverflowError Co-authored-by: lcawl <[email protected]> * Brought back missing changelog for 87235 (#87370) * Brought back missing changelog for 87235 * Regenerate release notes * Regenerate release notes for BC3 (#87449) * Regenerate release notes for BC3 * Re-applied manual fixes that Lisa Cawley used * Fixed breaking changes generation To match the manual edits done by Lisa Cawley * Fixed failing test Since the manual edits by Lisa removed the `-SNAPSHOT` from the docs we remove it from the tests too. * Remove changelogs for intermediate lucene upgrades * Update release notes for BC4 (#87635) * Update release notes for BC4 * Adding missing changelog for geo_grid * Added missing highlight notes for 84250 * Update docs/reference/release-notes/highlights.asciidoc Co-authored-by: David Kilfoyle <[email protected]> * Update docs/reference/release-notes/highlights.asciidoc Co-authored-by: David Kilfoyle <[email protected]> * Backported fixes to original yaml * Control sort order of release highlights So that small changes to an individual highlight don't completely shuffle the entire document. We also added links to the PRs from the highlight titles, for convenience. Otherwise readers need to search the release notes for the changelog entry and click there, which is a lot more work. * Fixed failing test after new ordered highlights Also made test verify re-ordering of highlights Co-authored-by: David Kilfoyle <[email protected]> * Update release notes for BC5 (#87808) * Update release notes for BC6 (#87912) * Update release notes for BC9 (#88011) * Regenerate release notes after version bump 8.4.0 And after forward porting 8.3.0 release notes changes. * Regenerate after some changelog entries removed * Re-prune the changelogs * Removed three changelog entries Co-authored-by: lcawl <[email protected]> Co-authored-by: David Kilfoyle <[email protected]>
When generating release notes for 8.3.0, it was discovered that they could not build due to missing imports in the migration/index.asciidoc file. This was easily added manually in the PR for that release at #87294, but I felt it should have been handled by the gradle task
generateReleaseNotes
, so I have added what I think is the right stuff for that.