You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@storm.apache.org by regisb <gi...@git.apache.org> on 2017/04/13 14:21:36 UTC

[GitHub] storm pull request #2068: Fix documentation code formatting

GitHub user regisb opened a pull request:

    https://github.com/apache/storm/pull/2068

    Fix documentation code formatting

    Code blocks should always follow an empty line; otherwise, jekyll will
    fail to properly format the code block. Also, github's code fencing (with triple backticks) does not work in the middle of item lists.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/regisb/storm regisb/documentation-code-blocks

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/storm/pull/2068.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2068
    
----
commit 45b827215a2c2d58b1f94f0349baf7170206cd56
Author: R�gis Behmo <re...@behmo.com>
Date:   2017-04-13T14:17:47Z

    Fix documentation code formatting
    
    Code blocks should always follow an empty line; otherwise, jekyll will
    fail to properly format the code block.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] storm issue #2068: Fix documentation code formatting

Posted by HeartSaVioR <gi...@git.apache.org>.
Github user HeartSaVioR commented on the issue:

    https://github.com/apache/storm/pull/2068
  
    +1


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] storm pull request #2068: Fix documentation code formatting

Posted by HeartSaVioR <gi...@git.apache.org>.
Github user HeartSaVioR commented on a diff in the pull request:

    https://github.com/apache/storm/pull/2068#discussion_r111517615
  
    --- Diff: docs/State-checkpointing.md ---
    @@ -22,31 +22,30 @@ For example a word count bolt could use the key value state abstraction for the
     last committed by the framework during the previous run.
     3. In the execute method, update the word count.
     
    - ```java
    - public class WordCountBolt extends BaseStatefulBolt<KeyValueState<String, Long>> {
    - private KeyValueState<String, Long> wordCounts;
    - private OutputCollector collector;
    - ...
    -     @Override
    -     public void prepare(Map stormConf, TopologyContext context, OutputCollector collector) {
    -       this.collector = collector;
    -     }
    -     @Override
    -     public void initState(KeyValueState<String, Long> state) {
    -       wordCounts = state;
    -     }
    -     @Override
    -     public void execute(Tuple tuple) {
    -       String word = tuple.getString(0);
    -       Integer count = wordCounts.get(word, 0);
    -       count++;
    -       wordCounts.put(word, count);
    -       collector.emit(tuple, new Values(word, count));
    -       collector.ack(tuple);
    -     }
    - ...
    - }
    - ```
    +    public class WordCountBolt extends BaseStatefulBolt<KeyValueState<String, Long>> {
    --- End diff --
    
    Maybe missed wrapping to code block.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] storm pull request #2068: Fix documentation code formatting

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/storm/pull/2068


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] storm pull request #2068: Fix documentation code formatting

Posted by HeartSaVioR <gi...@git.apache.org>.
Github user HeartSaVioR commented on a diff in the pull request:

    https://github.com/apache/storm/pull/2068#discussion_r111517701
  
    --- Diff: docs/State-checkpointing.md ---
    @@ -22,31 +22,30 @@ For example a word count bolt could use the key value state abstraction for the
     last committed by the framework during the previous run.
     3. In the execute method, update the word count.
     
    - ```java
    - public class WordCountBolt extends BaseStatefulBolt<KeyValueState<String, Long>> {
    - private KeyValueState<String, Long> wordCounts;
    - private OutputCollector collector;
    - ...
    -     @Override
    -     public void prepare(Map stormConf, TopologyContext context, OutputCollector collector) {
    -       this.collector = collector;
    -     }
    -     @Override
    -     public void initState(KeyValueState<String, Long> state) {
    -       wordCounts = state;
    -     }
    -     @Override
    -     public void execute(Tuple tuple) {
    -       String word = tuple.getString(0);
    -       Integer count = wordCounts.get(word, 0);
    -       count++;
    -       wordCounts.put(word, count);
    -       collector.emit(tuple, new Values(word, count));
    -       collector.ack(tuple);
    -     }
    - ...
    - }
    - ```
    +    public class WordCountBolt extends BaseStatefulBolt<KeyValueState<String, Long>> {
    --- End diff --
    
    Ah never mind. I got what you mean that `code fencing (with triple backticks) does not work in the middle of item lists`.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] storm issue #2068: Fix documentation code formatting

Posted by HeartSaVioR <gi...@git.apache.org>.
Github user HeartSaVioR commented on the issue:

    https://github.com/apache/storm/pull/2068
  
    @regisb Looks good overall without minor. Left comment.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] storm issue #2068: Fix documentation code formatting

Posted by HeartSaVioR <gi...@git.apache.org>.
Github user HeartSaVioR commented on the issue:

    https://github.com/apache/storm/pull/2068
  
    Thanks @regisb, merged into master and 1.x-branch.
    
    I've had other works to do, so website update will be done later.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] storm issue #2068: Fix documentation code formatting

Posted by regisb <gi...@git.apache.org>.
Github user regisb commented on the issue:

    https://github.com/apache/storm/pull/2068
  
    Great, thanks for the quick review and merge! 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---