Skip to content

Commit 07c6763

Browse files
committed
Initial commit
0 parents  commit 07c6763

File tree

242 files changed

+21850
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

242 files changed

+21850
-0
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
_site
2+
.sass-cache
3+
_config.yml

README.md

+121
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
# Introduction
2+
3+
This repository is the source code for [www.odata.org](http://www.odata.org) built with Jekyll. Site admins regularly updates the contents to the site.
4+
5+
# Contribution Guide
6+
7+
## Create blogs
8+
OData lovers can write blogs to share their experiences with OData. Blogs will be published at [www.odata.org/blog](http://www.odata.org/blog). To create a blog post :
9+
10+
- Create a **markdown** file under *_posts* folder.
11+
- Name the file `yyyy-mm-dd-your-blog-title.md`
12+
- Inside the markdown file, follow the templates: (If you are not familiar with markdown syntax, please refer to the *Appendix A* section below.
13+
```
14+
---
15+
layout: post
16+
title: your blog title
17+
date: 2010-03-17 17:59:43.000000000 +08:00
18+
author: Name you want to display
19+
---
20+
[Optional]Description of yourself
21+
22+
Contents of your blog post in Markdown syntax
23+
```
24+
25+
26+
- If you want to add images in your post, please add the image under *assets* folder first and the `src` url should be `{{ site.url }}assets/img.png`
27+
- If you want to add code in your post, please refer to the *Appendix B* section below.
28+
29+
- Then create a pull request for your update, we will publish your blog post after a quick review.
30+
31+
32+
## Other improvements
33+
34+
Other improvements including general site improvement ideas, modifying existing pages, adding new pages and etc, please [create a GitHub issue](https://github.com/ODataOrg/odataorg.github.io/issues) or [create a pull request](https://github.com/ODataOrg/odataorg.github.io/pulls).
35+
36+
# Appendix A: Markdown Syntax
37+
38+
We highly recommend using Markdown to create a blog post.
39+
40+
> Markdown is a text-to-HTML conversion tool for web writers. Markdown allows you to write using an easy-to-read, easy-to-write plain text format, then convert it to structurally valid XHTML (or HTML).
41+
42+
### Markdown Basics
43+
Markdown is very easy to use, with syntax below, you can write a pretty blog post.
44+
#### Headings
45+
You can create a heading by adding one or more `#` symbols before your heading text.
46+
```
47+
# h1
48+
## h2
49+
50+
###### h6
51+
```
52+
#### Blockquotes
53+
You can indicate blockquotes with a `>`.
54+
```
55+
In the words of Abraham Lincoln:
56+
> Pardon my french
57+
```
58+
#### Styling text
59+
```
60+
*This text will be italic*
61+
**This text will be bold**
62+
```
63+
#### Lists
64+
You can make an **unordered** list by preceding list items with either `*` or `-`
65+
```
66+
* Item
67+
* Item
68+
69+
- Item
70+
- Item
71+
```
72+
You can make an **ordered** list by preceding list items with a number.
73+
```
74+
1. Item 1
75+
2. Item 2
76+
```
77+
#### Code formatting
78+
Use single backtick (`) to format text in a special monospace format.
79+
80+
You can use triple backticks to format text as its own distinct block.
81+
82+
83+
#### Links
84+
You can create an inline link by wrapping link text in brackets ( [ ] ), and then wrapping the link in parentheses ( ( ) ).
85+
```
86+
[Visit GitHub!](www.github.com)
87+
```
88+
### More if you need
89+
If you need more advanced guidelines, please refer to:
90+
91+
- [Mastering Markdown](https://guides.github.com/features/mastering-markdown/)
92+
- [Daring Fireball: Markdown Syntax Documentation](http://daringfireball.net/projects/markdown)
93+
94+
# Appendix B: Code Formatting
95+
96+
There are two ways to formatting your code in a blog post.
97+
98+
**Markdown coding formatting**
99+
You can use coding format supported in Markdown, use triple backticks to format text as its own distinct block. This is very easy to use, but not support syntax highlighting
100+
101+
**Jekyll supported code formatting**
102+
Since our site is built with Jekyll, you can also use Jekyll supported code formatting, which supports **syntax highlight**. To render a code block with syntax highlighting, surround your code as follows:
103+
```
104+
{% highlight ruby %}
105+
def foo
106+
puts 'foo'
107+
end
108+
{% endhighlight %}
109+
```
110+
The argument to the `highlight` tag (`ruby` in the example above) is the language identifier. `ruby` here is a short name, for regually used short names:
111+
- `csharp` for C#
112+
- `javascript` for JavaScript
113+
- `ruby` for Ruby
114+
- `cpp` for C++
115+
- `c` for C
116+
- `java` for Java
117+
- `json` for JSON
118+
- `php` for PHP
119+
- `python` for Python
120+
121+
If the language you used not listed above, please look for the “short name” on the [Pygments’ Lexers page](http://pygments.org/docs/lexers/).

Robots.txt

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
User-Agent: *
2+
Disallow:
3+
Disallow: /assets
4+
Disallow: /public
5+
6+
Sitemap: http://odata-prod-stage.azurewebsites.net/sitemap.xml

_includes/footer.html

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<footer class="content-info" role="contentinfo">
2+
3+
<div class="container">
4+
<p>&copy; 2015 OData – The Protocol for REST APIs </p>
5+
6+
<script>
7+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
8+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
9+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
10+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
11+
12+
ga('create', 'UA-55977038-1', 'auto');
13+
ga('send', 'pageview');
14+
</script>
15+
16+
17+
</div>
18+
19+
</footer>

_includes/head.html

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<head>
2+
<meta charset="utf-8"/>
3+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
4+
5+
<title>
6+
{% if page.title %}
7+
{{ page.title }} &middot; {{ site.title }}
8+
{% else %}
9+
{{ site.title }}
10+
{% endif %}
11+
</title>
12+
13+
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
14+
<meta name="keywords" content="odata, open data, open data protocol, rest, restful, rest api, rest apis, restful api, restful apis, rest service, rest services, restful service, restful services, http, oasis, oasis tc">
15+
16+
<link rel="stylesheet" href="https://bootswatch.com/united/bootstrap.min.css"/>
17+
<link rel="stylesheet" href="{{site.url}}public/css/site.css">
18+
<link rel="stylesheet" href="{{site.url}}public/css/syntax.css">
19+
20+
<script src="//code.jquery.com/jquery-2.1.0.min.js"></script>
21+
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
22+
<script src="public/site.js"></script>
23+
<script type="text/javascript">
24+
(function(w,d,t,u,n,s,e){w['SwiftypeObject']=n;w[n]=w[n]||function(){
25+
(w[n].q=w[n].q||[]).push(arguments);};s=d.createElement(t);
26+
e=d.getElementsByTagName(t)[0];s.async=1;s.src=u;e.parentNode.insertBefore(s,e);
27+
})(window,document,'script','//s.swiftypecdn.com/install/v2/st.js','_st');
28+
29+
_st('install','23hsA6tEyP4R5VmqqdcD','2.0.0');
30+
</script>
31+
</head>

_includes/header.html

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<header class="site-header">
2+
3+
<div class="wrapper">
4+
5+
<a class="site-title" href="{{ site.baseurl }}/">{{ site.title }}</a>
6+
<nav class="site-nav">
7+
<a href="#" class="menu-icon">
8+
<svg viewBox="0 0 18 15">
9+
<path fill="#424242" d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.031C17.335,0,18,0.665,18,1.484L18,1.484z"/>
10+
<path fill="#424242" d="M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0c0-0.82,0.665-1.484,1.484-1.484 h15.031C17.335,6.031,18,6.696,18,7.516L18,7.516z"/>
11+
<path fill="#424242" d="M18,13.516C18,14.335,17.335,15,16.516,15H1.484C0.665,15,0,14.335,0,13.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.031C17.335,12.031,18,12.696,18,13.516L18,13.516z"/>
12+
</svg>
13+
</a>
14+
15+
<div class="trigger">
16+
{% for page in site.pages %}
17+
{% if page.title %}
18+
<a class="page-link" href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a>
19+
{% endif %}
20+
{% endfor %}
21+
</div>
22+
</nav>
23+
24+
</div>
25+
26+
</header>

_includes/navbar.html

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<header class="banner navbar navbar-default navbar-static-top" role="banner">
2+
3+
<div class="container">
4+
5+
<div class="navbar-header">
6+
<a class="brand" href="{{ site.url }}">
7+
<img class="img-responsive" src="http://www.odata.org/wp-content/uploads/2014/02/OData-logo-e1393393068350.png">
8+
</a>
9+
</div>
10+
11+
12+
<nav class="collapse navbar-collapse" role="navigation">
13+
<ul class="nav navbar-nav">
14+
<li><a href="{{ site.url }}blog">Blog</a></li>
15+
<li class="dropdown">
16+
<a class="dropdown-toggle" data-toggle="dropdown" data-target="#" href="#">Developers <b class="caret"></b></a>
17+
<ul class="dropdown-menu">
18+
<li><a href="{{ site.url }}getting-started">Getting Started</a></li>
19+
<li><a href="{{ site.url }}documentation">Documentation</a></li>
20+
<li><a href="{{ site.url }}libraries">Libraries</a></li>
21+
<li><a href="{{ site.url }}odata-services">Reference Services</a></li>
22+
<li><a href="{{ site.url }}odata-icon-usage-guidelines/">Icon Usage</a></li>
23+
</ul>
24+
</li>
25+
<li><a href="{{ site.url }}ecosystem">Ecosystem</a></li>
26+
<li><a href="{{ site.url }}contribution">Getting Involved</a></li>
27+
</ul>
28+
<form class="navbar-form navbar-right" role="search">
29+
<div class="form-group">
30+
<input type="text" class="form-control st-default-search-input" placeholder="Search">
31+
</div>
32+
</form>
33+
</nav>
34+
35+
</div>
36+
37+
</header>
38+

0 commit comments

Comments
 (0)