Skip to content

Commit

Permalink
Updates Terminal Basics Guide for 3.0. (#4835)
Browse files Browse the repository at this point in the history
* Updates Terminal Basics Guide for 3.0. Images to follow.

* spelling

* Adds the images.

* missing ! from markdown image

* Grammar correction.

* small wording changes

* updates Terminal Forecast intro

* adds screenshots to Forecast intro

* spelling in Forecast intro

* Forecast intro - grammar in last sentence

* Adds section for Support, removes themes sections, updates page description

* Adds images for support section.

* Add list of tips for support ticket info

* update metaphor

* make path jumping a standout note

* round of revisions - image to follow

* Image example for selecting a new data source.

* change tables sentence to say preferences are updated directly on the table.

* fix double note

* fix typo

* Makes annotated font brighter and easier to read.

* swap data source change pic.md

* Updates Terminal Technical Analysis Intro

* Adds screenshots to TA Intro

* typos

* make intro spin up pywry window with usage basics (#4871)

* fix ruff - unused import

* This indent keeps changing

* words

* updates Terminal Customization Guide

* adds image for table index locking

* chart/table cheat sheets

* Add another cheat sheet header

* fix

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
  • Loading branch information
3 people authored Apr 25, 2023
1 parent 762a8d4 commit 4dce2fa
Show file tree
Hide file tree
Showing 5 changed files with 1,087 additions and 584 deletions.
22 changes: 11 additions & 11 deletions openbb_terminal/terminal_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
from prompt_toolkit.completion import NestedCompleter
from prompt_toolkit.formatted_text import HTML
from prompt_toolkit.styles import Style
from rich import panel

import openbb_terminal.config_terminal as cfg
from openbb_terminal.account.account_controller import (
Expand Down Expand Up @@ -501,16 +500,17 @@ def call_funds(self, _):

def call_intro(self, _):
"""Process intro command."""
import json
webbrowser.open("https://docs.openbb.co/terminal/usage/basics")
# import json

intro: dict = json.load((Path(__file__).parent / "intro.json").open()) # type: ignore
# intro: dict = json.load((Path(__file__).parent / "intro.json").open()) # type: ignore

for prompt in intro.get("prompts", []):
console.print(panel.Panel(f"[purple]{prompt['header']}[/purple]"))
console.print("".join(prompt["content"]))
if input("") == "q":
break
console.print("\n")
# for prompt in intro.get("prompts", []):
# console.print(panel.Panel(f"[purple]{prompt['header']}[/purple]"))
# console.print("".join(prompt["content"]))
# if input("") == "q":
# break
# console.print("\n")

def call_exe(self, other_args: List[str]):
"""Process exe command."""
Expand Down Expand Up @@ -705,11 +705,11 @@ def terminal(jobs_cmds: Optional[List[str]] = None, test_mode=False):

if first_time_user():
try:
t_controller.call_intro(None)
# t_controller.call_intro(None)
webbrowser.open("https://docs.openbb.co/terminal/usage/basics")
# TDDO: Fix the CI
except EOFError:
pass

t_controller.print_help()
check_for_updates()

Expand Down
Loading

0 comments on commit 4dce2fa

Please sign in to comment.