Skip to content

Commit

Permalink
fixed small typo in image include template and a couple of doc errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjoht committed Jul 5, 2016
1 parent 62c2a90 commit 85f7373
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 8 deletions.
4 changes: 0 additions & 4 deletions _data/sidebars/mydoc_sidebar.yml
Expand Up @@ -199,10 +199,6 @@ entries:
url: /mydoc_themes
output: web, pdf

- title: Check page title consistency
url: /mydoc_title_checker
output: web, pdf

- title: Generating PDFs
url: /mydoc_generating_pdfs
output: web, pdf
Expand Down
2 changes: 1 addition & 1 deletion _includes/image.html
@@ -1 +1 @@
<figure>{% if {{include.url}} %}<a class="no_icon" target="_blank" href="{{include.url}}">{% endif %}<img class="docimage" src="../images/{{include.file}}" alt="{{include.alt}}" {% if {{include.max-width}} %}style="max-width: {{include.max-width}}px"{% endif %} />{% if {{include.url}} %}</a>{% endif %}{% if {{include.caption}} %}<figcaption>{{include.caption}}</figcaption></figure>{% endif %}
<figure>{% if {{include.url}} %}<a class="no_icon" target="_blank" href="{{include.url}}">{% endif %}<img class="docimage" src="images/{{include.file}}" alt="{{include.alt}}" {% if {{include.max-width}} %}style="max-width: {{include.max-width}}px"{% endif %} />{% if {{include.url}} %}</a>{% endif %}{% if {{include.caption}} %}<figcaption>{{include.caption}}</figcaption></figure>{% endif %}
4 changes: 2 additions & 2 deletions _pages/mydoc/mydoc_images.md
Expand Up @@ -41,10 +41,10 @@ For inline images, such as with a button that you want to appear inline with tex

```liquid
Click the **Android SDK Manager** button {%raw%}{% include inline_image.html
file="androidsdkmanagericon" type="png" alt="SDK button" %}{%endraw%}
file="androidsdkmanagericon.png" alt="SDK button" %}{%endraw%}
```

Click the **Android SDK Manager** button {% include inline_image.html file="androidsdkmanagericon" type="png" alt="SDK button" %}
Click the **Android SDK Manager** button {% include inline_image.html file="androidsdkmanagericon.png" alt="SDK button" %}

The inline_image.html include properties are as follows:

Expand Down
2 changes: 1 addition & 1 deletion _pages/mydoc/mydoc_lists.md
Expand Up @@ -128,6 +128,6 @@ Here's a list with some intercepting text:

The key principle is to line up the first character after the dot following the number:

{% include image.html file="liningup" type="png" caption="Lining up the left edge ensures the list stays in tact." %}
{% include image.html file="liningup.png" caption="Lining up the left edge ensures the list stays in tact." %}

For the sake of simplicity, use two spaces after the dot for numbers 1 through 9. Use one space for numbers 10 and up. If any part of your list doesn't align symmetrically on this left edge, the list will not render correctly. Also note that this is characteristic of kramdown-flavored Markdown and may not yield the same results in other Markdown flavors.
Binary file added images/liningup.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pdf/mydoc.pdf
Binary file not shown.

0 comments on commit 85f7373

Please sign in to comment.