Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
584 changes: 131 additions & 453 deletions docusaurus/docs/Getting Started/deployment.md

Large diffs are not rendered by default.

687 changes: 156 additions & 531 deletions docusaurus/docs/Getting Started/tasks.md

Large diffs are not rendered by default.

587 changes: 189 additions & 398 deletions docusaurus/docs/Getting Started/trades.md

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions docusaurus/docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion

const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
const {themes} = require('prism-react-renderer');
const lightCodeTheme = themes.github;
const darkCodeTheme = themes.dracula;

/** @type {import('@docusaurus/types').Config} */
const config = {
Expand Down
4 changes: 2 additions & 2 deletions docusaurus/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ const sidebars = {
},
{
type: 'doc',
id: 'Data/market-data-sources',
id: 'Data/data-sources',
},
{
type: 'doc',
id: 'Data/multiple-market-data-sources',
id: 'Data/backtest_data',
},
],
},
Expand Down
9 changes: 4 additions & 5 deletions investing_algorithm_framework/app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2124,11 +2124,10 @@ def add_strategy(self, strategy, throw_exception=True) -> None:

has_duplicates = False

for i in range(len(self._strategies)):
for j in range(i + 1, len(self._strategies)):
if self._strategies[i].worker_id == strategy.worker_id:
has_duplicates = True
break
for existing_strategy in self._strategies:
if existing_strategy.strategy_id == strategy.strategy_id:
has_duplicates = True
break

if has_duplicates:
raise OperationalException(
Expand Down
19 changes: 19 additions & 0 deletions show_docs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -e

cd "$(dirname "$0")/docusaurus"

if [ ! -d "node_modules" ]; then
echo "Installing dependencies..."
npm install
fi

if [ "$1" = "--build" ] || [ "$1" = "-b" ]; then
echo "Building docs..."
npm run build
echo "Serving built docs..."
npm run serve
else
echo "Starting Docusaurus dev server..."
npm start
fi
Loading
Loading