Re: [PR] SOLR-18494: Document one block style for commands in the Ref Guide [solr]
epugh merged PR #5006: URL: https://github.com/apache/solr/pull/5006 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] - To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
Re: [PR] SOLR-18494: Document one block style for commands in the Ref Guide [solr]
serhiy-bzhezytskyy commented on code in PR #5006: URL: https://github.com/apache/solr/pull/5006#discussion_r4217020246 ## solr/solr-ref-guide/modules/deployment-guide/pages/solr-control-script-reference.adoc: ## @@ -456,7 +456,7 @@ Stop Solr with verbose messages from this script. The `--version` command simply returns the version of Solr currently installed and immediately exists. -[source,bash] +[source,console] Review Comment: Already `console` at dac8b99: it shows the output (`X.Y.0`) under the `$` line. The rule in `dev-docs/ref-guide/asciidoc-syntax.adoc` (lines 97-99): commands plus output use `console` with `$`, commands only use `bash` with no prompt. ## solr/solr-ref-guide/modules/deployment-guide/pages/solr-control-script-reference.adoc: ## @@ -1934,35 +1934,35 @@ Notice the different endpoints used depending on the format. First export the documents, making sure to ignore any fields that are populated via a `copyField` by specifying what fields you want to export: -[,console] +[,bash] Review Comment: Already `bash` at dac8b99: commands only, no prompt, so the copy button copies the block as is. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] - To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
Re: [PR] SOLR-18494: Document one block style for commands in the Ref Guide [solr]
epugh commented on code in PR #5006: URL: https://github.com/apache/solr/pull/5006#discussion_r4211552163 ## solr/solr-ref-guide/modules/deployment-guide/pages/solr-control-script-reference.adoc: ## @@ -1934,35 +1934,35 @@ Notice the different endpoints used depending on the format. First export the documents, making sure to ignore any fields that are populated via a `copyField` by specifying what fields you want to export: -[,console] +[,bash] Review Comment: should this be `source,bash` ? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] - To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
Re: [PR] SOLR-18494: Document one block style for commands in the Ref Guide [solr]
epugh commented on code in PR #5006: URL: https://github.com/apache/solr/pull/5006#discussion_r4211549700 ## solr/solr-ref-guide/modules/deployment-guide/pages/solr-control-script-reference.adoc: ## @@ -456,7 +456,7 @@ Stop Solr with verbose messages from this script. The `--version` command simply returns the version of Solr currently installed and immediately exists. -[source,bash] +[source,console] Review Comment: should this be source,console? I guess I don't see a single pattern of when we sue bash and when we use console? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] - To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
Re: [PR] SOLR-18494: Document one block style for commands in the Ref Guide [solr]
epugh commented on PR #5006: URL: https://github.com/apache/solr/pull/5006#issuecomment-6046065983 thanks, I think I was seeing just a single commit fo rsome reason, and was suprised there were more files changed! testing now! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] - To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
Re: [PR] SOLR-18494: Document one block style for commands in the Ref Guide [solr]
serhiy-bzhezytskyy commented on PR #5006: URL: https://github.com/apache/solr/pull/5006#issuecomment-6045107207 Not only documentation: cd7108c applies the rule to the pages, 192 command blocks in 26 files. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] - To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
Re: [PR] SOLR-18494: Document one block style for commands in the Ref Guide [solr]
serhiy-bzhezytskyy commented on PR #5006: URL: https://github.com/apache/solr/pull/5006#issuecomment-6044782945 Checked the script behind the copy button in the Guide's UI bundle: on a `console` block that starts with `$ ` it copies only the commands, without `$` and without the output; a `bash` block is copied as is. So the rule matches how it works. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] - To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
Re: [PR] SOLR-18494: Document one block style for commands in the Ref Guide [solr]
serhiy-bzhezytskyy commented on code in PR #5006: URL: https://github.com/apache/solr/pull/5006#discussion_r4209613856 ## dev-docs/ref-guide/asciidoc-syntax.adoc: ## @@ -88,6 +88,28 @@ Use one of the valid short names to get syntax highlighting for that language. Ideally, we will have an appropriate lexer to use for all source blocks, but that's not possible. Review Comment: That sentence was written for Rouge, but the published Guide is highlighted by highlight.js, so I corrected the section (ceb5ba9). And "not possible" is almost no longer true: 22 of the 2,478 blocks with a language use a name the highlighter lacks (`powershell` 8, `terminal` 6, `bat` 4, and one each `r`, `promql`, `csv`, `subs`); the rest are highlighted. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] - To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
Re: [PR] SOLR-18494: Document one block style for commands in the Ref Guide [solr]
epugh commented on PR #5006: URL: https://github.com/apache/solr/pull/5006#issuecomment-6042370379 Is this PR done then? If it's only documentation? Or, are you also in this PR fixing the various styles? (Or did the get done elsewhere) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] - To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
Re: [PR] SOLR-18494: Document one block style for commands in the Ref Guide [solr]
epugh commented on PR #5006: URL: https://github.com/apache/solr/pull/5006#issuecomment-5980389698 Let's leave this PR open a few more days, see if we get any other feedback on it? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] - To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
Re: [PR] SOLR-18494: Document one block style for commands in the Ref Guide [solr]
epugh commented on code in PR #5006: URL: https://github.com/apache/solr/pull/5006#discussion_r4177796391 ## dev-docs/ref-guide/asciidoc-syntax.adoc: ## @@ -88,6 +88,28 @@ Use one of the valid short names to get syntax highlighting for that language. Ideally, we will have an appropriate lexer to use for all source blocks, but that's not possible. Review Comment: why is this not possible? Has antora/asciidoc not expanded to cover everything? Not sure this blanket statement is still true. Maybe? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] - To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
[PR] SOLR-18494: Document one block style for commands in the Ref Guide [solr]
serhiy-bzhezytskyy opened a new pull request, #5006: URL: https://github.com/apache/solr/pull/5006 https://issues.apache.org/jira/browse/SOLR-18494 # Description Command blocks in the Ref Guide use several styles: of 624 blocks holding a `curl` or `bin/solr` command on main, 473 are `bash`, 123 are `console` and 28 use `text`, `plain`, `terminal`, `sh`, `powershell` or no language. The authoring guide says only "when in doubt, choose `text`". # Solution Adds a "Command Blocks" section to `dev-docs/ref-guide/asciidoc-syntax.adoc`: `bash` without a prompt for commands only, `console` with `$` when the output is shown too, `text` for output alone, `powershell` for the Windows variant. The pages themselves are not touched; they can follow once the rule is agreed. Written with Claude Code. # Tests The page renders and the new cross-reference resolves. The example command and output are copied from `tutorial-films.adoc`. # Checklist - [x] I have reviewed the guidelines for [How to Contribute](https://github.com/apache/solr/blob/main/CONTRIBUTING.md) and my code conforms to the standards described there to the best of my ability. - [x] I have created a Jira issue and added the issue ID to my pull request title. - [x] I have given Solr maintainers [access](https://help.github.com/en/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork) to contribute to my PR branch. (optional but recommended, not available for branches on forks living under an organisation) - [x] I have developed this patch against the `main` branch. - [ ] I have run `./gradlew check`. - [ ] I have added tests for my changes. - [x] I have added documentation for the [Reference Guide](https://github.com/apache/solr/tree/main/solr/solr-ref-guide) - [ ] I have added a [changelog entry](https://github.com/apache/solr/blob/main/dev-docs/changelog.adoc) for my change -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] - To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
