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: Cut down on high level rest client copy-and-paste-ness #34125

Merged
merged 5 commits into from
Sep 28, 2018

Conversation

nik9000
Copy link
Member

@nik9000 nik9000 commented Sep 27, 2018

This introduces a mechanism to slightly reduce the copy-and-paste-ness of
the documentation for the High Level REST Client. It pulls out the entire
"execution" portion of the page that we can include in every page. Doing
this requires the introduction of a few attributes. It then uses these
attributes to further cut down on some copy-and-paste-ness.

This also standardizes some of the ids in the search documentation to
the naming scheme that we seem to be using in the newer docs.

@nik9000 nik9000 changed the title Asciidoc tricks Docs: Cut down on high level rest client copy-and-paste-ness Sep 27, 2018
@nik9000
Copy link
Member Author

nik9000 commented Sep 27, 2018

This is what it'd look like to cut down on the asciidoc ritual for each high level rest client API. I don't think it is really enough, but maybe it is a good start. I'm not sure. I marked it discuss so we'll talk about it some.

@nik9000
Copy link
Member Author

nik9000 commented Sep 27, 2018

Ah! I forgot to mention in the description that this also standardizes some of the ids in the search page documentation to look more like the ids that we've been using for newer docs. I'll update the description.

Copy link
Contributor

@dimitris-athanasiou dimitris-athanasiou left a comment

Choose a reason for hiding this comment

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

LGTM This is definitely a step forward!

@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

@nik9000
Copy link
Member Author

nik9000 commented Sep 28, 2018

@elasticmachine, retest this please

Copy link
Contributor

@hub-cap hub-cap left a comment

Choose a reason for hiding this comment

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

@nik9000
Copy link
Member Author

nik9000 commented Sep 28, 2018

image

@nik9000 nik9000 removed the discuss label Sep 28, 2018
@nik9000 nik9000 merged commit 47bcb56 into elastic:master Sep 28, 2018
@nik9000
Copy link
Member Author

nik9000 commented Sep 28, 2018

oooops misclick. I meant to rewrite the commit message before merge but merged too quickly. That is a shame.

nik9000 added a commit that referenced this pull request Sep 28, 2018
* Anchors

* includes

* get settings

* more

* More
nik9000 added a commit to nik9000/elasticsearch that referenced this pull request Sep 28, 2018
Use tricks pioneered in elastic#34125 to shorted asciidoc for the index API's
docs. Also slightly shorten the supported-api docs file.
nik9000 added a commit that referenced this pull request Oct 1, 2018
Use tricks pioneered in #34125 to shorted asciidoc for the index API's
docs. Also slightly shorten the supported-api docs file.
nik9000 added a commit that referenced this pull request Oct 1, 2018
Use tricks pioneered in #34125 to shorted asciidoc for the index API's
docs. Also slightly shorten the supported-api docs file.
nik9000 added a commit to nik9000/elasticsearch that referenced this pull request Oct 1, 2018
This further applies the pattern set in elastic#34125 to reduce copy-and-paste
in the single document CRUD portion of the High Level REST Client docs.
It also adds line wraps to snippets that are too wide to fit into the box
when rendered in the docs, following up on the work started in elastic#34163.
@nik9000 nik9000 mentioned this pull request Oct 1, 2018
nik9000 added a commit that referenced this pull request Oct 5, 2018
This further applies the pattern set in #34125 to reduce copy-and-paste
in the single document CRUD portion of the High Level REST Client docs.
It also adds line wraps to snippets that are too wide to fit into the box
when rendered in the docs, following up on the work started in #34163.
nik9000 added a commit that referenced this pull request Oct 5, 2018
This further applies the pattern set in #34125 to reduce copy-and-paste
in the single document CRUD portion of the High Level REST Client docs.
It also adds line wraps to snippets that are too wide to fit into the box
when rendered in the docs, following up on the work started in #34163.
nik9000 added a commit that referenced this pull request Oct 29, 2018
This further applies the pattern set in #34125 to reduce copy-and-paste
in the multi-document CRUD portion of the High Level REST Client docs.
It also adds line wraps to snippets that are too wide to fit into the box
when rendered in the docs, following up on the work started in #34163.
nik9000 added a commit that referenced this pull request Oct 29, 2018
This further applies the pattern set in #34125 to reduce copy-and-paste
in the multi-document CRUD portion of the High Level REST Client docs.
It also adds line wraps to snippets that are too wide to fit into the box
when rendered in the docs, following up on the work started in #34163.
kcm pushed a commit that referenced this pull request Oct 30, 2018
* Anchors

* includes

* get settings

* more

* More
kcm pushed a commit that referenced this pull request Oct 30, 2018
Use tricks pioneered in #34125 to shorted asciidoc for the index API's
docs. Also slightly shorten the supported-api docs file.
kcm pushed a commit that referenced this pull request Oct 30, 2018
This further applies the pattern set in #34125 to reduce copy-and-paste
in the single document CRUD portion of the High Level REST Client docs.
It also adds line wraps to snippets that are too wide to fit into the box
when rendered in the docs, following up on the work started in #34163.
kcm pushed a commit that referenced this pull request Oct 30, 2018
This further applies the pattern set in #34125 to reduce copy-and-paste
in the multi-document CRUD portion of the High Level REST Client docs.
It also adds line wraps to snippets that are too wide to fit into the box
when rendered in the docs, following up on the work started in #34163.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants