Skip to content
This repository was archived by the owner on Aug 27, 2021. It is now read-only.
Closed

testing #3987

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ Breadcrumbs are generated by the `breadcrumbs.rb` plugin.

You can write pages in markdown, HTML, or HAML. They all get converted to HTML when the site is generated.

Pages have a block of YAML at the top that sets a few options. They are pretty self-explanatory; here's an example
Pages have a block of YAML at the top that sets a few options. They are pretty self-explanatory; here's an example:

```
---
Expand Down
6 changes: 3 additions & 3 deletions first-timers.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ To make changes to any page on http://sendgrid.com/docs, follow these steps:

1. Navigate to the page you would like to edit and click **View and Edit** in the upper right-hand corner.

<img src="https://github.com/Whatthefoxsays/docs/blob/github-cheatsheet/source/img/docs_view_and_edit.png" width="800" height="500">
<img src="https://github.com/sendgrid/docs/blob/develop/source/img/docs_view_and_edit.png" width="800" height="500">

This will take you to the sendgrid.com/docs GitHub repository, or repo. This is where our docs pages are stored.

2. If you do not already have a GitHub account, you will have to create one in order to suggest a change. Click the Sign up link in the upper right-hand corner to create an account. Enter your username, password, and email address. If you are an employee of SendGrid, please use your full name with your GitHub account and enter SendGrid as your company so we can easily identify you.

<img src="https://github.com/Whatthefoxsays/docs/blob/github-cheatsheet/source/img/docs_signup.png" width="800" height="500">
<img src="https://github.com/sendgrid/docs/blob/develop/source/img/docs_signup.png" width="800" height="500">

Once you are viewing a Docs page in GitHub, click the pencil icon to begin editing:

<img src="https://github.com/Whatthefoxsays/docs/blob/github-cheatsheet/source/img/docs_edit_github.png" width="800" height="500">
<img src="https://github.com/sendgrid/docs/blob/develop/source/img/docs_edit_github.png" width="800" height="500">


3. Once you have made your changes, you will be given the option of creating a new branch in a Pull Request. This is a request to create a copy, or branch, of the original Docs but with your changes. Once your changes are approved, your branch will then be merged back into the original.
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion source/API_Reference/Web_API/Reseller_API/whitelabel.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ List


{% parameters get %}
{% parameter 'list' 'Yes' 'Must be set to <em>list</em>' %}
{% parameter 'task' 'Yes' 'Must be set to <em>list</em>' %}
{% parameter 'method' 'Yes' 'Must be set to <em>whitelabel</em>' %}
{% endparameters %}

Expand Down
2 changes: 1 addition & 1 deletion source/Integrate/Code_Examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<div class="row">
<div class="col-md-8">
<h2><a href="{{root_url}}/Integrate/Code_Examples/v3_Mail/">Web API v3 Code Examples</a></h2>
<h2>Web API v3 Code Examples</h2>
<p>
Learn how to quickly start sending email through SendGrid's Web API v3. Here you will find code examples for our latest v3 Mail Send endpoint in 7 different programming languages.
</p>
Expand Down
22 changes: 22 additions & 0 deletions source/User_Guide/Transactional_Templates/Using_handlebars.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ Substitution
There are four main types of substitutions:

- [Basic replacement](#-Basic-replacement)
- [Text only replacement](#-Text-only-replacement)
- [Deep object replacement](#-Deep-object-replacement)
- [Object failure](#-Object-failure)
- [Replacement with HTML](#-Replacement-with-HTML)
Expand All @@ -146,6 +147,27 @@ Resulting replacement:
{% raw %}<p>Hello Ben</p>{% endraw %}
{% endcodeblock %}

{% anchor h4 %}
Text only replacement
{% endanchor %}

This is useful for subject line replacement, as the subject line doesn't process HTML encoding (i.e. an apostrophe would encode as &apos;).

Subject line should contain:
{% codeblock %}
{% raw %}{{{subject}}}{% endraw %}
{% endcodeblock %}

Test Data should contain:
{% codeblock %}
{"subject":"James' Artisanal \"Cheeses\""}
{% endcodeblock %}

Resulting subject line replacement:
{% codeblock %}
{% raw %}James' Artisanal "Cheeses"{% endraw %}
{% endcodeblock %}

{% anchor h4 %}
Deep object replacement
{% endanchor %}
Expand Down
30 changes: 2 additions & 28 deletions source/_includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,40 +86,14 @@
<meta name="msapplication-TileImage" content="https://sendgrid.com/brand/favicons/ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff">

<link href="{{root_url}}/{% css_asset_tag global %}
- /_assets/stylesheets/app.less
- /_assets/stylesheets/icomoon.less
- /_assets/stylesheets/images.less
{% endcss_asset_tag %}" rel="stylesheet" type='text/css' />
<link href="https://sendgrid.com/docs/assets/global-ecc286f800632a989058f964b0d52b7a.css" rel="stylesheet" type='text/css' />

<!-- Use for development with gulp only -->
<!-- <link href="/assets/app.css" rel="stylesheet" type='text/css' /> -->

<script type="text/javascript">

filename = "{{root_url}}/{% javascript_asset_tag global %}
- /_assets/bower_components/jquery/dist/jquery.min.js
- /_assets/javascripts/fonts.js
- /_assets/javascripts/collapse.min.js
- /_assets/bower_components/jstorage/jstorage.min.js
- /_assets/javascripts/menu.js
- /_assets/javascripts/menu-icon.js
- /_assets/javascripts/responsive-menu.js
- /_assets/javascripts/analytics.js
- /_assets/bower_components/modernizr/modernizr.js
- /_assets/bower_components/bootstrap/dist/js/bootstrap.min.js
- /_assets/javascripts/search.js
- /_assets/javascripts/forms.js
- /_assets/bower_components/jsrender/jsrender.js
- /_assets/javascripts/feedback.js
- /_assets/javascripts/octopress.js
- /_assets/bower_components/highlightjs/highlight.pack.js
- /_assets/bower_components/jquery-cookie/jquery.cookie.js
- /_assets/javascripts/tables.js
- /_assets/javascripts/iframe_docs.js
{% endjavascript_asset_tag %}"

// filename = "{{root_url}}/assets/app.js"
filename = "https://sendgrid.com/docs/assets/global-ca466351408fcb1dae4bdec742db56d2.js"

// Add a script element as a child of the body
function downloadJSAtOnload() {
Expand Down