-
Notifications
You must be signed in to change notification settings - Fork 411
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
Improve search behavior for specific keywords #25037
Conversation
--- Signed-off-by: Michael Ferguson <mppf@users.noreply.github.com>
--- Signed-off-by: Michael Ferguson <mppf@users.noreply.github.com>
if commentstarts > 0: | ||
# reset indentation at the start of a block comment | ||
#indentation = -1; | ||
pass |
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.
dead / debugging code?
@@ -102,21 +107,25 @@ def push_line(line): | |||
# No need for trailing white space... ever | |||
proseline = proseline.rstrip(' ') | |||
|
|||
# Handle indentation |
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.
nothing that literate_chapel.py
is also used for the blog so it would be good to make sure that none of the blog Markdown conversions are affected.
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.
Can you suggest how I can go about doing that?
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.
I think you would:
- Follow the steps in the README to build the
main
branch ofchapel-blog
withCHPL_HOME
pointed to a version of the repo right before this PR
- This would involve running
./scripts/chpl_blog.py build
in the blog repo
- Preserve the
public
directory by renaming it to something (public-old
) - Going back to the Chapel repo at
$CHPL_HOME
, check out this PR; runbuild
again - Do a
diff
onpublic-old
andold
.
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.
There are whitespace changes but I think they're innocuous and the new result is more accurate.
An example, with this input within a comment:
/*
### First Solution: Hand-coded Interval Arithmetic
Here is a succinct solution for both parts in Chapel.
```Chapel
use IO;
var sumSubset = 0;
...
Now there are spaces in the visible code listing before the use
and var
lines.
This problem only affects 2 posts: aoc2022-day04-ranges (source of the above example) and netcdf1 (which has a minor difference that seems to be an improvement).
This PR improves the documentation search results for specific searches:
In order to do so, it adds
.. index::
entries to the forallLoops.chpl and taskParallel.chpl primers. I added index entries for other sections present there, while there. To get these.. index::
entries to work, I needed to updateliterate_chapel.py
because it was de-indenting the lines following.. index::
which lead to invalid RST.This PR also has a minor impact on the Chapel blog rendering (since the blog uses
chpl2rst.py
which this PR modifies to support.. index::
). Now whitespace is more accurately respected within the .rst comments.Reviewed by @DanilaFe - thanks!