Skip to content

Commit 90941dc

Browse files
authored
Add a staging config.yml for use when deploying to staging slot and replace absolute links with relative links (#357)
1 parent ec80492 commit 90941dc

File tree

61 files changed

+454
-124
lines changed

Some content is hidden

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

61 files changed

+454
-124
lines changed

.github/workflows/publish_to_production_slot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
run: |
2626
docker run \
2727
-v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \
28-
jekyll/builder:stable /bin/bash -c "chmod -R 777 /srv/jekyll && jekyll build --future"
28+
jekyll/builder:stable /bin/bash -c "chmod -R 777 /srv/jekyll && jekyll build --config _config.yml --future"
2929
3030
- name: Log in with Azure # Using Azure Service Principal
3131
uses: azure/login@v1

.github/workflows/publish_to_staging_slot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
run: |
2626
docker run \
2727
-v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \
28-
jekyll/builder:stable /bin/bash -c "chmod -R 777 /srv/jekyll && jekyll build --future"
28+
jekyll/builder:stable /bin/bash -c "chmod -R 777 /srv/jekyll && jekyll build --config _config_staging.yml --future"
2929
3030
- name: Log in with Azure # Using Azure Service Principal
3131
uses: azure/login@v1

_config_staging.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Site settings
2+
title: OData - the Best Way to REST
3+
4+
description: > # this means to ignore newlines until "baseurl:"
5+
OData, short for Open Data Protocol, is an open protocol
6+
to allow the creation and consumption of queryable and interoperable RESTful APIs
7+
in a simple and standard way.
8+
baseurl: "" # the subpath of your site, e.g. /blog/
9+
url: "https://odata-prod-stage.azurewebsites.net" # the base hostname & protocol for your site
10+
twitter_username: odataorg
11+
github_username: odataorg
12+
13+
collections:
14+
ecosys:
15+
output: true
16+
permalink: /ecosystem/:categories/:title/
17+
libraries:
18+
output: true
19+
tutorials:
20+
output: true
21+
permalink: /tutorials/:title/
22+
23+
permalink: /blog/:title/
24+
25+
# highlighter: pygments
26+
27+
# Build settings
28+
markdown: kramdown
29+
30+
gems:
31+
- jekyll-sitemap

_ecosys/consumers/Client-Libraries.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
layout: default
33
category: consumers
44
title: "Client Libraries"
5-
link: "https://www.odata.org/libraries"
5+
link: "/libraries"
66
---
77
Client libraries are programming libraries that make it easy to consume OData services. We already have libraries that target: Javascript, PHP, Java, Windows Phone 7 Series, iPhone (Objective C) and .NET. For a complete list visit the OData SDK.

_ecosys/sdk/Sample-Services.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ category: sdk
44
title: "Sample Services"
55
github: "https://github.com/OData/ODataSamples"
66
---
7-
Github repository of ODataSamples, including code used in [here](https://www.odata.org/odata-services/).
7+
Github repository of ODataSamples, including code used in [here](/odata-services/).

_includes/head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
3232
-->
3333

34-
<link rel="stylesheet" href="https://www.odata.org/public/css/bootstrap.min.css"/>
34+
<link rel="stylesheet" href="{{'/public/css/bootstrap.min.css' | prepend: site.baseurl | prepend: site.url}}">
3535
<link rel="stylesheet" href="{{'/public/css/site.css' | prepend: site.baseurl | prepend: site.url}}">
3636
<link rel="stylesheet" href="{{'/public/css/syntax.css' | prepend: site.baseurl | prepend: site.url}}">
3737
<link rel="stylesheet" href="{{'/public/css/autocomplete.css' | prepend: site.baseurl | prepend: site.url}}">

_posts/2010-04-13-odata-weekly-roundup-2.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
<li><strong>Open Source the .NET producer libraries:</strong> This is something that we've now heard from a number of people.  We are working through the feasibility and associated logistics at the moment.  We will let you know as we make progress on our thinking around this request.</li>
2020
<li><strong>Create or Foster producer libraries for different platforms:</strong> Closely related is the need to make it easy to create OData Services on all major platforms. The most common requests being Java (because of it's importance to the enterprise), PHP, Python and Ruby (OData on Rails?). Doug Purdy has a blog post asking for your opinions <a href="https://www.douglaspurdy.com/2010/04/03/open-source-odata-server/"> here</a>. Again we are investigating options here. We are also trying to figure out how we can help simplify creating libraries and services. So far we've released the OData Validation Toolkit to help you validate your service. Can you think of anything else beyond just libraries that would help? We'd love to hear you suggestions here.</li>
2121
<li><strong>Sample Producer code on different platforms:</strong> We've heard a lot of requests for sample code to create an OData Service in language X on platform Y. You might think this is dependent on the above, and to implement the whole of OData it certainly is, but OData is flexible enough that you can do a rudimentary OData service - in any language - very easily. Check out  <a href="https://blogs.msdn.com/pablo/archive/2010/01/26/implementing-only-certain-aspects-of-odata.aspx"> Implementing only certain aspects of OData</a> for more.</li>
22-
<li><strong>Test Suite for Producers and Producer Libraries:</strong> Anders Hol wondered if we would release our test suites too. The OData Validation Toolkit - part of the <a href="https://www.odata.org/developers/odata-sdk">OData SDK</a> - should help. The toolkit looks at your service's data model, which it tries to extract by going to $metadata, and then runs some <a href="https://msdn.microsoft.com/en-us/library/bb126445.aspx">T4 templates</a> against your model to produce tests bound to your service. The cool thing is that the location of the T4 templates can easily be changed, so you can reference your own T4 templates. Why would you do that? Well you could extend our, admittedly rudimentary, templates or refactor the existing templates so they emit Ruby or Java tests instead of C#. In fact we hope community authored language packs will emerge over time. Indeed if you create them we will definitely let the community know.</li>
23-
<li><strong>Hiding Properties:</strong> Luigi wanted to know how to hide properties. If you use the .NET Data Services producer libraries then by default every property in your underlying class gets exposed. So you should think of the classes exposed by your data service in the same way you think about a View Model for UI code: if you don't want to expose it don't put in your class. If re-working your class isn't a realistic option, you can still hide properties by creating a  <a href="https://blogs.msdn.com/alexj/archive/2010/01/07/data-service-providers-getting-started.aspx"> Custom Data Services Provider</a>. You can find more Custom Data Service samples and guidance in the <a href="https://www.odata.org/developers/odata-sdk">OData SDK</a>.</li>
22+
<li><strong>Test Suite for Producers and Producer Libraries:</strong> Anders Hol wondered if we would release our test suites too. The OData Validation Toolkit - part of the <a href="/developers/odata-sdk">OData SDK</a> - should help. The toolkit looks at your service's data model, which it tries to extract by going to $metadata, and then runs some <a href="https://msdn.microsoft.com/en-us/library/bb126445.aspx">T4 templates</a> against your model to produce tests bound to your service. The cool thing is that the location of the T4 templates can easily be changed, so you can reference your own T4 templates. Why would you do that? Well you could extend our, admittedly rudimentary, templates or refactor the existing templates so they emit Ruby or Java tests instead of C#. In fact we hope community authored language packs will emerge over time. Indeed if you create them we will definitely let the community know.</li>
23+
<li><strong>Hiding Properties:</strong> Luigi wanted to know how to hide properties. If you use the .NET Data Services producer libraries then by default every property in your underlying class gets exposed. So you should think of the classes exposed by your data service in the same way you think about a View Model for UI code: if you don't want to expose it don't put in your class. If re-working your class isn't a realistic option, you can still hide properties by creating a  <a href="https://blogs.msdn.com/alexj/archive/2010/01/07/data-service-providers-getting-started.aspx"> Custom Data Services Provider</a>. You can find more Custom Data Service samples and guidance in the <a href="/developers/odata-sdk">OData SDK</a>.</li>
2424
<li><strong>RDF data sources and RDF format:</strong> Jay Funnell would like to have the ability to consume and produce RDF built-in to the protocol. Consuming RDF in a Data Service is possible today, but you have to write a <a href="https://blogs.msdn.com/alexj/archive/2010/01/07/data-service-providers-getting-started.aspx"> Custom Data Service Provider</a>. And as of today there isn't a prescribed way to translate OData into RDF. We wonder whether RDF integration with OData is important beyond those who are extremely passionate about RDF? Is this something that you want to see?</li>
2525
<li><strong>Primitive Types and Namespaces:</strong> Eric Westenberger asked a good question about how to map his Java types into OData. Basically when you create your model, you can choose any Namespace and Name so long as it complies with the <a href="https://www.ecma-international.org/publications/standards/Ecma-334.htm"> C# identifier rules</a> and is no more the 480 characters long. What this means in practice is that most Java class and namespace names should be fine. OData also ships with a built-in set of  <a href="https://www.odata.org/media/6652/%5bmc-csdl%5d%5b1%5d.htm#_Toc246717571"> primitive types</a>, that you must be able to map your properties into. Please let us know if you think we are missing key primitive types.</li>
2626
<li><strong>Licensing questions:</strong> Gustavo Andriotti wanted to know more about the licensing of the Protocol and the OData SDK. The OData Protocol itself is released under the <a href="https://www.microsoft.com/interop/osp/default.mspx">Open Specification Promise</a>, if you take another look at the OData home page you will notice we reworked it to make this clearer.  The OData SDK on the other hand is a collect of resources, each of which have their own license. Most of the time the license is either  <a href="http://en.wikipedia.org/wiki/Shared_source#Microsoft_Public_License_.28Ms-PL.29"> Ms-PL</a> or <a href="http://en.wikipedia.org/wiki/Apache_License">Apache</a>. To be sure simply follow the download link for licensing terms. Thanks again for the feedback Gustavo.</li>

_posts/2010-05-07-odata-roundup-3.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
<div>
1515
<p>Many exciting things have happened in the OData world since our last post.</p>
1616
<ul>
17-
<li>We <a href="https://www.odata.org/blog/the-open-data-protocol-net-framework-client-library-source-code-available-for-download"> released the source code</a> for our .NET client library on <a href="http://odata.codeplex.com/">codeplex</a>.</li>
18-
<li>We announced the <a href="https://www.odata.org/blog/odata-roadshow">OData Roadshow</a> which will visit: New York, Chicago, Mountain View, Shanghai, Tokyo, Reading and Paris in the coming months. See if you can get along.</li>
17+
<li>We <a href="/blog/the-open-data-protocol-net-framework-client-library-source-code-available-for-download"> released the source code</a> for our .NET client library on <a href="http://odata.codeplex.com/">codeplex</a>.</li>
18+
<li>We announced the <a href="/blog/odata-roadshow">OData Roadshow</a> which will visit: New York, Chicago, Mountain View, Shanghai, Tokyo, Reading and Paris in the coming months. See if you can get along.</li>
1919
<li>The <a href="http://windowsteamblog.com/blogs/windowslive/archive/2010/04/29/messenger-across-the-web.aspx"> next version of Windows Live Messenger</a> will include a RESTful interface that supports OData.</li>
20-
<li>We asked whether people thought making <a href="https://www.odata.org/blog/queryable-odata-metadata"> OData metadata queryable</a> would be useful?</li>
20+
<li>We asked whether people thought making <a href="/blog/queryable-odata-metadata"> OData metadata queryable</a> would be useful?</li>
2121
<li>Tomorrow we are putting on a free webcast, <a href="https://msevents.microsoft.com/CUI/WebCastEventDetails.aspx?EventID=1032450906&amp;EventCategory=2&amp;culture=en-US&amp;CountryCode=US"> OData and You: An everyday guide for Architects Featuring Douglas Purdy</a>.</li>
2222
<li>We released an updated version of the <a href="http://www.silverlight.net/content/samples/odataexplorer/">OData Explorer</a> that now works with the RTM version of Silverlight 4.</li>
2323
<li>And as always lots of things are happening on <a href="https://twitter.com/home#search?q=%23odata">twitter</a>.</li>
@@ -27,7 +27,7 @@
2727
<li>Michael asks how do you consume a .NET 4.0 Data Service from Silverlight 3?<br />
2828
Today in SL3 there is no supported way to consume V2 features of an OData service.<br />
2929
Which means Data Services built with either .NET 4.0 or the Data Services Update for .NET 3.5 Framework SP1 aren't fully supported. If it is an option you should upgrade to <a href="https://www.microsoft.com/silverlight/">Silverlight 4</a>.</li>
30-
<li>We keep hearing requests to make OData and RDF more interoperable. And at the moment we are thinking about that that might mean. We even made <a href="https://www.odata.org/blog/queryable-odata-metadata"> one related proposal</a> to try to gauge community interest.</li>
30+
<li>We keep hearing requests to make OData and RDF more interoperable. And at the moment we are thinking about that that might mean. We even made <a href="/blog/queryable-odata-metadata"> one related proposal</a> to try to gauge community interest.</li>
3131
<li>Vasa asked: "How do I consume the Reporting Services OData Report feed programmatically"?<br />
3232
You can generalize this question down to: "How do you program against a single feed with no service documents and no $metadata support?"<br />
3333
A very interesting question. One that I plan on reporting back on once I've had a chance to investigate more.</li>
@@ -38,7 +38,7 @@
3838
<li><a href="https://delicious.com/kidehen/odata_demo">Virtuoso Sponger Middleware &amp; OData Demo</a></li>
3939
</ul>
4040
</li>
41-
<li>One person wanted to know how to expose a Service Operation via a custom Data Service Provider. There is a sample of this in the <a href="http://odata.org/developers/odata-sdk">OData SDK</a> - but it is well hidden - you need to download the code Sample code for the Sample Services, unzip and look inside <em>/ODataWeb/OData/OData.svc.cs</em>. It is a Data Service Provider based Service that exposes a service operation.</li>
41+
<li>One person wanted to know how to expose a Service Operation via a custom Data Service Provider. There is a sample of this in the <a href="/developers/odata-sdk">OData SDK</a> - but it is well hidden - you need to download the code Sample code for the Sample Services, unzip and look inside <em>/ODataWeb/OData/OData.svc.cs</em>. It is a Data Service Provider based Service that exposes a service operation.</li>
4242
<li>John asked for more public OData Services to be listed on the Producers page. Especially ones that have geo data included, so he and other can create some compelling mashups. We hear you John and are trying to make the Producers page more reactive.</li>
4343
<li>John also hopes that one day his browser will become OData aware, with special OData specific options and commands becoming available. This is definitely part of the dream John!</li>
4444
</ul>

_posts/2010-05-12-odata-roadshow.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
author: OData.org Archive
1313
---
1414
<div>
15-
<p>In case you haven't heard already we are putting on an <a href="https://www.odata.org/blog/odata-roadshow">OData Roadshow</a>.</p>
15+
<p>In case you haven't heard already we are putting on an <a href="/blog/odata-roadshow">OData Roadshow</a>.</p>
1616
<p><a href="https://twitter.com/douglasp">Douglas Purdy</a> and <a href="https://twitter.com/lostintangent">Jonathan Carter</a> will be presenting and guiding attendees through a free day's worth of OData goodness.</p>
1717
<p>The Roadshow will visit each of these locations:</p>
1818
<ul>

_posts/2010-06-01-odata-workshops-in-raleigh-charlotte-atlanta-chicago-and-nyc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
---
1313
<div>
1414
<p>Chris (aka <a href="http://www.chriswoodruff.com/">Woody</a>) Woodruff has organized a series of <a href="http://www.chriswoodruff.com/index.php/2010/05/11/odata-blowout-in-june-8-odata-workshops-in-raleigh-charlotte-atlanta-chicago-and-nyc/"> OData workshops</a> to compliment the official <a href="http://odata.org/roadshow">OData Roadshow</a>.</p>
15-
<p>This is highly recommended. So if for whatever reason you can't make it to one of the OData Roadshow events, or you just can't get enough <a href="http://odata.org/">OData</a>, see if you can get along to one of Chris' workshops.</p>
15+
<p>This is highly recommended. So if for whatever reason you can't make it to one of the OData Roadshow events, or you just can't get enough <a href="/">OData</a>, see if you can get along to one of Chris' workshops.</p>
1616
<p>The workshops start in Raleigh tomorrow and finish in NYC on June 28th.</p>
1717
<p><a href="http://www.chriswoodruff.com/index.php/2010/05/11/odata-blowout-in-june-8-odata-workshops-in-raleigh-charlotte-atlanta-chicago-and-nyc/"> Learn more and register here</a>.</p>
1818
</div>

0 commit comments

Comments
 (0)