Skip to content

Commit 849efa6

Browse files
Docs for tui version release (#334)
* Starting tidying up the website and adding how-to for install and choosing terminal. * Add first draft of walkthrough. * Full thread through and text tidy up, add all internal and external links. * Add textual-dev to dev dependencies. * Delete test screenshot svgs. * Testing resoltuion after 300 dpi in photoshop. * Trying 600 dpi. * Trying 1200 dpi! * try with shareX * Check how things render on macos few figures added. * Adding screenshots for graphical interface part of walkthrough. * Adding python API sections to walkthrough. * First draft of the tutorial complete. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Continue drafting + dark mode datashuttle image. * Adding pictures to HOW TO. * Export dark mode datashuttle as artboard. * Upload halfway through transfer page, need to check. * Rough draft complete for all sections. * something went wrong with git. * finish first draft of all how-tos. * Rename 'make_folders' to 'create_folders' in docs. * First draft of docs complete. * Add notes on taking screenshots. * Minor formatting changes, improvements during doc writing. * Remove high dpi screenshots that were slowing down git. * Fix tests after DataShuttle changed to datashuttle. * Fix top-level folder widget test. * Fix errors introduced after API changes. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 0a9f549 commit 849efa6

File tree

94 files changed

+2212
-109
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+2212
-109
lines changed

datashuttle/tui/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class TuiApp(App):
4343

4444
def compose(self) -> ComposeResult:
4545
yield Container(
46-
Label("DataShuttle", id="mainwindow_banner_label"),
46+
Label("datashuttle", id="mainwindow_banner_label"),
4747
Button(
4848
"Select Existing Project",
4949
id="mainwindow_existing_project_button",
@@ -118,7 +118,7 @@ def handle_open_filesystem_browser(self, path_: Path) -> None:
118118
)
119119
else:
120120
message = (
121-
"Unexpected error occurred. Please contact the DataShuttle"
121+
"Unexpected error occurred. Please contact the datashuttle"
122122
"development team."
123123
)
124124

datashuttle/tui/configs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,15 +443,15 @@ def setup_configs_for_a_new_project(self) -> None:
443443
).disabled = False
444444

445445
message = (
446-
"A DataShuttle project has now been created.\n\n "
446+
"A datashuttle project has now been created.\n\n "
447447
"Next, setup the SSH connection. Once complete, navigate to the "
448448
"'Main Menu' and proceed to the project page, where you will be "
449449
"able to create and transfer project folders."
450450
)
451451

452452
else:
453453
message = (
454-
"A DataShuttle project has now been created.\n\n "
454+
"A datashuttle project has now been created.\n\n "
455455
"Next proceed to the project page, where you will be "
456456
"able to create and transfer project folders."
457457
)

datashuttle/tui/css/tui_menu.tcss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#mainwindow_banner_label {
1414
border: hkey $primary;
1515
content-align: center middle;
16-
text-style: italic bold;
16+
text-style: bold;
1717
color: $text;
1818
width: 50%;
1919
height: 5;

datashuttle/utils/rclone.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,8 @@ def assert_rclone_check_output_is_as_expected(result, symbol, convert_symbols):
285285
assert symbol in convert_symbols.keys(), "rclone check symbol is unknown."
286286
assert symbol != "!", (
287287
"Could not complete rlcone check. "
288-
"This is unexpected. Please contact DataShuttle "
289-
"devs at our GitHub page."
288+
"This is unexpected. Please contact datashuttle "
289+
"at our GitHub page."
290290
)
291291

292292

datashuttle/utils/ssh.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,11 @@ def setup_ssh_key(
129129
"""
130130
if not sys.stdin.isatty():
131131
utils.log_and_raise_error(
132-
f"Attempting to run outside of a TTY terminal. "
133-
f"This may happen if attempting to run in an IDE console. "
134-
f"`getpass` (used for ssh password input) cannot run. "
135-
f"Try running using the command-line-interface with "
136-
f"'datashuttle {cfg.project_name} "
137-
f"setup-ssh-connection-to-central-server' "
138-
f"or in a terminal rather than IDE console.",
132+
"Attempting to run outside of a TTY terminal. "
133+
"This may happen if attempting to run in an IDE console. "
134+
"`getpass` (used for ssh password input) cannot run. "
135+
"Try using Python from the operating system "
136+
"terminal to run this function.",
139137
RuntimeError,
140138
)
141139

docs/rebuild.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import shutil
2+
import subprocess
3+
from pathlib import Path
4+
5+
build_path = Path(__file__).parent / "build"
6+
7+
if build_path.is_dir():
8+
shutil.rmtree(build_path)
9+
10+
subprocess.run("sphinx-build ./source ./build", shell=True)
53.5 KB
53.3 KB

docs/source/_static/css/custom.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,7 @@ html[data-theme=light] {
4646
height: auto;
4747
margin: 5px auto;
4848
}
49+
50+
.center {
51+
text-align: center;
52+
}
927 KB

0 commit comments

Comments
 (0)