Skip to content

Commit

Permalink
Merge pull request #195 from amadeus4dev/newbranding
Browse files Browse the repository at this point in the history
update branding, upgrade to mkdocs- materials 9.4.7
  • Loading branch information
tsolakoua authored Oct 31, 2023
2 parents 4b893d3 + 5f874b7 commit 34172ac
Show file tree
Hide file tree
Showing 25 changed files with 62 additions and 106 deletions.
Empty file removed api.json
Empty file.
Binary file removed docs/assets/favicon.ico
Binary file not shown.
Binary file added docs/assets/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/logo2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions docs/developer-tools/graphql/rest-to-graphql-node.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The goal of this tutorial is to create a GraphQL API, which will only use the `k

Before you begin, you need to:

* Register your application with Amadeus for Developers as described in [Making your first API call](/developer-guides/quick-start.html).
* Register your application with Amadeus for Developers as described in [Making your first API call](../../quick-start.md).
* Have Node.js installed on your machine.

## Initialize a new Node.js project
Expand Down Expand Up @@ -135,7 +135,7 @@ node index.mjs
## Query the GraphQL API

!!! information
Before running the query, make sure to obtain the token as described in our [Authorization guide](/developer-guides/API-Keys/authorization.html).
Before running the query, make sure to obtain the token as described in our [Authorization guide](../../API-Keys/authorization.md).

Now that we have the server running, we can send requests to it. The most straightforward method to do this is by using `curl`. To query this API by the `keyword` "Paris":

Expand Down
4 changes: 2 additions & 2 deletions docs/developer-tools/graphql/rest-to-graphql-python.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The goal of this tutorial is to create a GraphQL API, which will only use the `k

Before you begin, you need to:

* Register your application with Amadeus for Developers as described in [Making your first API call](/developer-guides/quick-start.html).
* Register your application with Amadeus for Developers as described in [Making your first API call](../../quick-start.md).
* Have Python installed on your machine.

## Create a new Python project
Expand Down Expand Up @@ -114,7 +114,7 @@ uvicorn main:app
## Query the GraphQL API

!!! information
Before running the query, make sure to obtain the token as described in our [Authorization guide](/developer-guides/API-Keys/authorization.html).
Before running the query, make sure to obtain the token as described in our [Authorization guide](../../API-Keys/authorization.md).

Now that we have the server running, we can send requests to it. The most straightforward method to do this is by using `curl`. To query this API by the `keyword` "Paris":

Expand Down
2 changes: 1 addition & 1 deletion docs/developer-tools/postman.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Before you begin, you need to:

![10](../images/developer-tools/postman/postman-10.png)

3. Enter you [API key and secret values](/API-Keys/authorization/) into the **Current** values of the `client_id` and `client_secret` parameters respectively.
3. Enter you [API key and secret values](../API-Keys/authorization.md) into the **Current** values of the `client_id` and `client_secret` parameters respectively.
4. Click **Save**.
5. On the left side bar, navigate to **Collections**.
6. Select the **Authorization > Access Granted Client Credentials**.
Expand Down
4 changes: 2 additions & 2 deletions docs/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Check our [Amadeus for Developers docs portal](./index.md) for links to interact

### Do you provide SDKs?

Yes! On the [Amadeus for Developers GitHub page](https://github.com/amadeus4dev/){:target="\_blank"} you can find open-source SDKs in various languages. Alternatively, you can use [OpenAPI Generator](./developer-tools/openapi-generator.md{:target="\_blank"} to create an SDK from our [OpenAPI files](https://github.com/amadeus4dev/amadeus-open-api-specification){:target="\_blank"}.
Yes! On the [Amadeus for Developers GitHub page](https://github.com/amadeus4dev/){:target="\_blank"} you can find open-source SDKs in various languages. Alternatively, you can use [OpenAPI Generator](./developer-tools/openapi-generator.md) to create an SDK from our [OpenAPI files](https://github.com/amadeus4dev/amadeus-open-api-specification){:target="\_blank"}.

### Where can I see code examples for Amadeus Self-Service APIs?

Expand Down Expand Up @@ -389,7 +389,7 @@ The maximum date for the 'checkInDate' parameter is 359 days from today. Anythin

Regarding the input for a specific location in a hotel search, you have the following options:

* Since the commissioning of Hotel Search v3, we can no longer search hotels by IATA codes. In order to search by location you will need to use the [third endpoint of Hotel List](/reference-data/locations/hotels/by-geocode), which allows you to search using a latitude & longitude. The Hotel List API returns `hotelIds` based on the specific search coordinates. You will then need to use this `hotelId` in the third endpoint of the Hotel Search API.
* Since the commissioning of Hotel Search v3, we can no longer search hotels by IATA codes. In order to search by location you will need to use the third endpoint of Hotel List `/reference-data/locations/hotels/by-geocode`, which allows you to search using a latitude & longitude. The Hotel List API returns `hotelIds` based on the specific search coordinates. You will then need to use this `hotelId` in the third endpoint of the Hotel Search API.

* Alternatively, you can use the Google API to retrieve the geo location of a specific location and use the Hotel Search by geo location.

Expand Down
Binary file added docs/fonts/AmadeusNeue-Bold.otf
Binary file not shown.
Binary file added docs/fonts/AmadeusNeue-Bold.ttf
Binary file not shown.
Binary file added docs/fonts/AmadeusNeue-Bold.woff
Binary file not shown.
Binary file added docs/fonts/AmadeusNeue-Bold.woff2
Binary file not shown.
Binary file added docs/fonts/AmadeusNeue-Light.otf
Binary file not shown.
Binary file added docs/fonts/AmadeusNeue-Light.ttf
Binary file not shown.
Binary file added docs/fonts/AmadeusNeue-Light.woff
Binary file not shown.
Binary file added docs/fonts/AmadeusNeue-Light.woff2
Binary file not shown.
Binary file added docs/fonts/AmadeusNeue-Regular.otf
Binary file not shown.
Binary file added docs/fonts/AmadeusNeue-Regular.ttf
Binary file not shown.
Binary file added docs/fonts/AmadeusNeue-Regular.woff
Binary file not shown.
Binary file added docs/fonts/AmadeusNeue-Regular.woff2
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/resources/cars-transfers.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The Amadeus Cars and Transfers APIs provide an extensive suite of capabilities d

![Cars and transfers API](../images/resources/cars-transfers/TransfersAPI.png)

Have a look at our dedicated [Postman collection](./developer-tools/postman.md) to easily test the Cars and Transfers API with pre-set requests.
Have a look at our dedicated [Postman collection](../developer-tools/postman.md) to easily test the Cars and Transfers API with pre-set requests.

| APIs | Description |
|------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------|
Expand Down
58 changes: 45 additions & 13 deletions docs/stylesheets/extra.css
Original file line number Diff line number Diff line change
@@ -1,22 +1,54 @@
:root {
/* Primary color shades */
--md-primary-fg-color: #005EB8;
--md-primary-fg-color--light: #005EB8;
--md-primary-fg-color--dark: #00A9E0;
--md-primary-fg-color--light: #3A8BFF;
--md-primary-fg-color--dark: #3A8BFF;
--md-accent-fg-color: #3A8BFF;

--md-accent-fg-color: #005EB8;
--md-accent-fg-color--transparent: #00A9E0;
}
.md-header {
background-color: #000835;
}
.md-typeset a {
color: #3A8BFF;
}
.md-footer-meta {
background-color: #000835;
}
.md-footer {
background-color: #C5D5F9;
color: #000835
}
.md-nav__item .md-nav__link--active {
color:#3A8BFF;
}

@font-face {
font-family: 'Amadeus';
src: url('../fonts/Amadeus.eot');
src: url('../fonts/Amadeus.eot?#iefix') format('embedded-opentype'),
url('../fonts/Amadeus.woff2') format('woff2'),
url('../fonts/Amadeus.woff') format('woff'),
url('../fonts/Amadeus.ttf') format('truetype'),
url('../fonts/Amadeus.svg#Amadeus') format('svg');
font-weight: normal;
font-family: 'AmadeusNeue';
src: url('../fonts/AmadeusNeue-Light.woff2') format('woff2'),
url('../fonts/AmadeusNeue-Light.woff') format('woff'),
url('../fonts/AmadeusNeue-Light.ttf') format('truetype'),
url('../fonts/AmadeusNeue-Light.otf') format('opentype');
font-weight: light;
font-style: normal;
}

@font-face {
font-family: 'AmadeusNeue';
src: url('../fonts/AmadeusNeue-Bold.woff2') format('woff2'),
url('../fonts/AmadeusNeue-Bold.woff') format('woff'),
url('../fonts/AmadeusNeue-Bold.ttf') format('truetype'),
url('../fonts/AmadeusNeue-Bold.otf') format('opentype');
font-weight: bold;
font-style: normal;
}

@font-face {
font-family: 'AmadeusNeue';
src: url('../fonts/AmadeusNeue-Regular.woff2') format('woff2'),
url('../fonts/AmadeusNeue-Regular.woff') format('woff'),
url('../fonts/AmadeusNeue-Regular.ttf') format('truetype'),
url('../fonts/AmadeusNeue-Regular.otf') format('opentype');
font-weight: normal;
font-style: normal;
}

12 changes: 7 additions & 5 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@ theme:
features:
- navigation.instant
- navigation.tracking
- navigation.indexes
- toc.follow
- navigation.indexes
- navigation.footer
- navigation.top
- toc.follow
- search.suggest
- search.highlight
- search.share
- announce.dismiss
- content.code.copy
palette:
- scheme: default
toggle:
Expand All @@ -36,10 +38,10 @@ theme:
icon: material/weather-sunny
name: Switch to light mode
font:
text: Amadeus
text: AmadeusNeue
code: Source Sans Pro
favicon: assets/favicon.ico
logo: assets/logo.svg
favicon: assets/favicon.png
logo: assets/logo2.png

markdown_extensions:
- admonition
Expand Down
52 changes: 0 additions & 52 deletions overrides/partials/footer.html

This file was deleted.

30 changes: 2 additions & 28 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,31 +1,5 @@
Babel==2.11.0
certifi==2022.12.7
charset-normalizer==2.1.1
click==8.1.3
ghp-import==2.1.0
gitdb==4.0.10
GitPython==3.1.29
idna==3.4
importlib-metadata==5.1.0
Jinja2==3.1.2
Markdown==3.3.7
MarkupSafe==2.1.1
mergedeep==1.3.4
mkdocs==1.4.2
mkdocs-git-revision-date-localized-plugin==1.1.0
mkdocs-material==8.5.11
mkdocs-material-extensions==1.1.1
mkdocs-material==9.4.7
mkdocs-video==1.3.0
packaging==22.0
Pygments==2.13.0
pymdown-extensions==9.9
python-dateutil==2.8.2
pytz==2022.7
PyYAML==6.0
pyyaml_env_tag==0.1
requests==2.28.1
six==1.16.0
smmap==5.0.0
urllib3==1.26.13
watchdog==2.2.0
zipp==3.11.0
pytz==2022.7

0 comments on commit 34172ac

Please sign in to comment.