From 7bc9f15646f66c329e3e3050ebfc026bc3fd56af Mon Sep 17 00:00:00 2001 From: Lytkini Date: Wed, 10 Jan 2018 18:51:28 +0300 Subject: [PATCH 01/20] react reference and introduction added --- _config.yml | 2 +- _data/sidebars/evotordoc_sidebar.yml | 26 +-- ...sidebar.yml => java_reference_sidebar.yml} | 4 +- _data/sidebars/product1_sidebar.yml | 120 -------------- _data/sidebars/react_reference_sidebar.yml | 49 ++++++ _data/topnav.yml | 16 +- _includes/custom/sidebarconfigs.html | 8 +- _includes/topnav.html | 3 + .../java_reference_introduction.md | 8 + .../react_reference_broadcastreceiver.md | 36 ++++ .../react_reference_devices.md | 144 ++++++++++++++++ .../react_reference_eventHolder.md | 88 ++++++++++ .../react_reference_integrationapi.md | 48 ++++++ .../react_reference_introducrion.md | 36 ++++ .../react_reference_inventoryapi.md | 60 +++++++ .../react_reference_navigationapi.md | 156 ++++++++++++++++++ .../react_reference_receiptapi.md | 95 +++++++++++ .../react_reference_userapi.md | 70 ++++++++ 18 files changed, 826 insertions(+), 143 deletions(-) rename _data/sidebars/{product2_sidebar.yml => java_reference_sidebar.yml} (94%) delete mode 100644 _data/sidebars/product1_sidebar.yml create mode 100644 _data/sidebars/react_reference_sidebar.yml create mode 100644 pages/java_reference/java_reference_introduction.md create mode 100644 pages/react_reference/react_reference_broadcastreceiver.md create mode 100644 pages/react_reference/react_reference_devices.md create mode 100644 pages/react_reference/react_reference_eventHolder.md create mode 100644 pages/react_reference/react_reference_integrationapi.md create mode 100644 pages/react_reference/react_reference_introducrion.md create mode 100644 pages/react_reference/react_reference_inventoryapi.md create mode 100644 pages/react_reference/react_reference_navigationapi.md create mode 100644 pages/react_reference/react_reference_receiptapi.md create mode 100644 pages/react_reference/react_reference_userapi.md diff --git a/_config.yml b/_config.yml index 17707b6..bbb798e 100644 --- a/_config.yml +++ b/_config.yml @@ -24,7 +24,7 @@ disqus_shortname: host: 127.0.0.1 # the preview server used. Leave as is. -port: 4000 +port: 4001 # the port where the preview is rendered. You can leave this as is unless you have other Jekyll builds using this same port that might cause conflicts. in that case, use another port such as 4006. exclude: diff --git a/_data/sidebars/evotordoc_sidebar.yml b/_data/sidebars/evotordoc_sidebar.yml index 707c651..35ddffe 100644 --- a/_data/sidebars/evotordoc_sidebar.yml +++ b/_data/sidebars/evotordoc_sidebar.yml @@ -386,24 +386,24 @@ entries: # REACT SDK # ############################################################### -# - title: REACT SDK -# output: web -# folderitems: -# - title: Подготовка среды для разработки на React Native -# url: /doc_react_getting_started.html -# output: web -# -# - title: Манифест React Native приложения -# url: /doc_react_manifest.html -# output: web + - title: REACT SDK + output: web + folderitems: + - title: Подготовка среды для разработки на React Native + url: /doc_react_getting_started.html + output: web + + - title: Манифест React Native приложения + url: /doc_react_manifest.html + output: web # # - title: Открытие окон смарт-терминала # url: /doc_react_navigationAPI.html # output: web # -# - title: Установка приложения на смарт-терминал -# url: /doc_react_app_installation.html -# output: web + - title: Установка приложения на смарт-терминал + url: /doc_react_app_installation.html + output: web # # - title: Работа с пользователями # url: /doc_react_usersAPI.html diff --git a/_data/sidebars/product2_sidebar.yml b/_data/sidebars/java_reference_sidebar.yml similarity index 94% rename from _data/sidebars/product2_sidebar.yml rename to _data/sidebars/java_reference_sidebar.yml index 08cd712..29c2d16 100644 --- a/_data/sidebars/product2_sidebar.yml +++ b/_data/sidebars/java_reference_sidebar.yml @@ -1,8 +1,8 @@ # This is your sidebar TOC. The sidebar code loops through sections here and provides the appropriate formatting. entries: -- title: Product2 - product: Product2 +- title: Справочник по Java SDK + product: Справочник по Java SDK version: 1.0 folders: diff --git a/_data/sidebars/product1_sidebar.yml b/_data/sidebars/product1_sidebar.yml deleted file mode 100644 index 417506c..0000000 --- a/_data/sidebars/product1_sidebar.yml +++ /dev/null @@ -1,120 +0,0 @@ -# This is your sidebar TOC. The sidebar code loops through sections here and provides the appropriate formatting. - - -entries: -- title: Sidebar - product: Документация Эвотор - version: 1.0 - folders: - - - title: - output: pdf - type: frontmatter - folderitems: - - title: - url: /titlepage - output: pdf - type: frontmatter - - title: - url: /tocpage - output: pdf - type: frontmatter - - - title: О платформе Эвотор - output: web, pdf - folderitems: - - - title: Введение - url: /p1_introduction.html - output: web, pdf - - - title: Тестирование приложения - url: /p1_application_test.html - output: web, pdf - - - title: Термины и определения - url: /p1_terms_and_definitions.html - output: web, pdf - - - title: Интеграция с платформой - output: web, pdf - - folderitems: - - title: История изменений API и SDK - url: /p1_changes_history.html - output: web, pdf - - - title: Запросы к облаку Эвотор - url: /p1_evotor_rest_api_calls.html - output: web, pdf - - - title: Запросы к стороннему сервису - url: /p1_outgoing_calls_protocol.html - output: web, pdf - - - title: Приложения для смарт-терминала - url: /p1_smart_terminal_applications.html - output: web, pdf - - - title: Документы смарт-терминала - url: /p1_smart_terminal_documents.html - output: web, pdf - - - title: Возвращаемые ошибки - url: /p1_errors_returned.html - output: web, pdf - - - title: Примеры реализации - output: web, pdf - - folderitems: - - title: Облачная товароучётная система - url: /p1_cloud_server_to_server.html - output: web, pdf - - - title: IFrame на странице приложения - url: /p1_iframe_within_application_page.html - output: web, pdf - - - title: Приложение для смарт-терминала - url: /p1_smart_terminal_application.html - output: web, pdf - - - title: Интеграция с 1С - url: /p1_1C_integration.html - output: web, pdf - - - title: SDK смарт-терминала - output: web, pdf - folderitems: - - - title: Описание SDK смарт-терминала - url: /doc_smart_terminal_sdk.html - output: web - - - title: Продажа - output: web, pdf - folderitems: - - - title: Юридическая схема - url: /p1_legal_scheme.html - output: web, pdf - - - title: Тарифы приложений - url: /p1_applications_tariffs.html - output: web, pdf - - - title: Условия - url: /p1_conditions.html - output: web, pdf - - - title: Продвижение - url: /p1_marketing.html - output: web, pdf - - - title: FAQ - output: web, pdf - folderitems: - - title: FAQ - url: /p1_faq.html - output: web diff --git a/_data/sidebars/react_reference_sidebar.yml b/_data/sidebars/react_reference_sidebar.yml new file mode 100644 index 0000000..5598fc4 --- /dev/null +++ b/_data/sidebars/react_reference_sidebar.yml @@ -0,0 +1,49 @@ +# This is your sidebar TOC. The sidebar code loops through sections here and provides the appropriate formatting. + + +entries: +- title: Интерфейсы React Native SDK + product: Интерфейсы React Native SDK + version: + folders: + + - title: Введение + url: /react_reference_introduction.html + output: web + + - title: Интерфейсы + output: web + folderitems: + + - title: User API + url: /react_reference_userapi.html + output: web + + - title: Receipt API + url: /react_reference_receiptapi.html + output: web + + - title: Inventory API + url: /react_reference_inventoryapi.html + output: web + + - title: Navigation API + url: /react_reference_navigationapi.html + output: web + + - title: Integration API + url: /react_reference_integrationapi.html + output: web + + - title: Приёмники сообщений + url: /react_reference_broadcastreceivers.html + output: web + + - title: Подключение устройств + url: /react_reference_devices.html + output: web + +#Может понадобиатся, если не понадобится в течение 2х месяцев - удалить. Сегодня 10.01.2018. +# - title: EventHolder (?) +# url: /react_reference_enums.html +# output: web diff --git a/_data/topnav.yml b/_data/topnav.yml index dca6d12..6bd10c3 100644 --- a/_data/topnav.yml +++ b/_data/topnav.yml @@ -2,13 +2,23 @@ ## if you want to list an external url, use external_url instead of url. the theme will apply a different link base. topnav: - title: Topnav - items: - title: Разработчикам external_url: https://dev.evotor.ru/ - title: Справочник API external_url: https://api.evotor.ru/ - - title: SDK смарт-терминала - url: /doc_java_integration_library_connection.html +# - title: SDK смарт-терминала +# url: /doc_java_integration_library_connection.html - title: Что нового url: /whats_new.html + +#Topnav dropdowns +topnav_dropdowns: +- title: Topnav dropdowns + folders: + - title: Справочники + folderitems: + - title: Java SDK + url: /java_reference_introduction.html + - title: React Ntive SDK + url: /react_reference_introduction.html diff --git a/_includes/custom/sidebarconfigs.html b/_includes/custom/sidebarconfigs.html index 6562414..d40330c 100644 --- a/_includes/custom/sidebarconfigs.html +++ b/_includes/custom/sidebarconfigs.html @@ -1,11 +1,11 @@ {% if page.sidebar == "evotordoc_sidebar" %} {% assign sidebar = site.data.sidebars.evotordoc_sidebar.entries %} -{% elsif page.sidebar == "product1_sidebar" %} -{% assign sidebar = site.data.sidebars.product1_sidebar.entries %} +{% elsif page.sidebar == "java_reference_sidebar" %} +{% assign sidebar = site.data.sidebars.java_reference_sidebar.entries %} -{% elsif page.sidebar == "product2_sidebar" %} -{% assign sidebar = site.data.sidebars.product2_sidebar.entries %} +{% elsif page.sidebar == "react_reference_sidebar" %} +{% assign sidebar = site.data.sidebars.react_reference_sidebar.entries %} {% elsif page.sidebar == "evotordoc_sidebar" %} {% assign sidebar = site.data.sidebars.evotordoc_sidebar.entries %} diff --git a/_includes/topnav.html b/_includes/topnav.html index 0c164d8..be1d9fc 100644 --- a/_includes/topnav.html +++ b/_includes/topnav.html @@ -13,6 +13,9 @@