Skip to content
Snippets Groups Projects
Commit eba39856 authored by Sergey Yakubov's avatar Sergey Yakubov
Browse files

update docs

parent 33887119
Branches
Tags
No related merge requests found
......@@ -137,7 +137,7 @@ if(BUILD_INTEGRATION_TESTS)
add_subdirectory(tests)
endif()
if(BUILD_EXAMPLES OR INSTALL_EXAMPLES)
if(BUILD_EXAMPLES OR INSTALL_EXAMPLES OR BUILD_ASAPO_SITE)
add_subdirectory(examples)
endif()
......
......@@ -32,14 +32,14 @@ unix socket or a tcp port for communications)
}>
<TabItem value="unix">
```shell content="getting_started/start_asapo_socket.sh" title="start_asapo_socket.sh"
```shell content="getting_started/start_asapo_socket.sh"
```
</TabItem>
<TabItem value="tcp">
```shell content="getting_started/start_asapo_tcp.sh" title="start_asapo_tcp.sh"
```shell content="getting_started/start_asapo_tcp.sh"
```
</TabItem>
......
......@@ -18,10 +18,6 @@ module.exports = function (context, options) {
test: /\.py$/i,
use: 'raw-loader',
},
{
test: /\.txt$/i,
use: 'raw-loader',
},
],
},
};
......
......@@ -2,6 +2,7 @@ import React from 'react'
import InitCodeBlock from '@theme-init/CodeBlock'
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
const requireContext = require.context('../../../../examples/for_site/', true, /\.(sh|py|cpp)$/);
const noteStyle: React.CSSProperties = {
textAlign: 'right',
......@@ -79,8 +80,8 @@ function ReferenceCode(props: any) {
const snippetTag = getVal("snippetTag", props)
if (codeBlockContent) {
const content = require('../../../../examples/for_site/'+codeBlockContent);
let body = content.default.split('\n')
const res = requireContext('./'+codeBlockContent)
let body = res.default.split('\n')
const fromLine = body.indexOf(snippetTag + " start") + 1 || 0;
const toLine = body.indexOf(snippetTag + " end", fromLine) - 1 || undefined;
body = body.slice(fromLine, (toLine || fromLine) + 1).join('\n')
......
add_subdirectory(consumer)
if(BUILD_EXAMPLES)
add_subdirectory(pipeline)
endif()
add_subdirectory(producer)
if(BUILD_EXAMPLES OR INSTALL_EXAMPLES)
add_subdirectory(producer)
add_subdirectory(consumer)
endif()
if(BUILD_ASAPO_SITE)
add_subdirectory(for_site)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment