dev2718
1aefbf3b35
Fix: detype None env-vars to '' to fix #4600 ( #4649 )
...
* detype untyped and path env-vars to ""; path_to_str("") == None
* update env-var-tutorial, add news
* update test_expandvars, test_expand_path, test_register_custom_var_str
* trigger CI-rerun since unrelated osx test failed
Co-authored-by: Alexander Firbas <alexander.firbas@gmail.com>
2022-01-21 14:46:50 +05:30
Noorhteen Raja NJ
9fbecfc155
feat: use github actions to deploy docs ( #4641 )
...
* feat: use github actions to deploy docs
fixes #4473
* fix: install xonsh
* fix: doc action
* chore: support *.md for documentation
* fix: remove hardcoded docs link
it affects local testing
* refactor: move sphinx extensions to its own package
* fix: remove deprecated get_theme_dir
As of Sphinx 1.2, this is passed to Sphinx via a ``setup.py`` entry
point,
and no longer needs to be included in your documentation's
``conf.py``.
* feat: jinja2 render without affecting incremental build
* style:
* feat: auto generate API doc
no need to create a file for each module
* chore: watch top-level and nested files
* refactor: update lib api-docs as well
* fix: import errors when doc generated
for some modules
* fix: relative path
* feat: add release handling
* Update .github/workflows/docs.yml
Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
* refactor: use github-app-token
* chore: deploy docs only when merged
Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
2022-01-18 11:38:27 -05:00
Noorhteen Raja NJ
c2d25ac251
pre-commit hook for pyupgrade ( #4583 )
...
* chore: add pyupgrade
* refactor: upgrade code to py3.7+
ran `pre-commit run pyupgrade -a` while excluding changes to ply
* fix: flake errors
2021-12-06 14:42:26 -05:00
Jason R. Coombs
03ddd829d6
Clarify behavior for capturing and storing output in the history. ( #4578 )
...
* Clarify behavior for capturing and storing output in the history. Fixes #4576 .
* ⚫ Fade to black.
2021-12-02 00:12:42 +05:30
Noorhteen Raja NJ
b2516737b6
code refactor ( #4571 )
...
* style:
* refactor: tests of xoreutils
2021-11-30 08:23:32 -05:00
Noorhteen Raja NJ
adafa20b88
adopt NEP-0029 ( #4568 )
...
* chore: adopt NEP-0029 for py version deprecation policy
fixes #4560
* chore: drop py3.6 from CI
* docs: add news item
* fix: failing qa because latest version to flake8-bugbear
see https://github.com/PyCQA/flake8-bugbear/issues/208
* chore: require >=py3.7
2021-11-29 12:48:48 -05:00
Noorhteen Raja NJ
d5c6c9e4e6
docs: remove xompletions api doc ( #4479 )
2021-11-27 09:59:23 -05:00
omjadas
a49a538ab2
Simplify foreign functions ( #4393 )
...
* chore: simplify foreign functions
* fix: sourcing multiple foreign files
* refactor: address review comments
* Update docs/aliases.rst
Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
* refactor: run black
Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
2021-11-23 17:01:42 -05:00
Evgeny
3d753ea3be
Add Sublime Text 4 extension to the Editors page ( #4552 )
2021-11-23 04:06:48 +05:30
IJR222
7331d8aee5
Update editors.rst ( #4526 )
...
Fixed typo.
2021-11-02 08:52:05 -04:00
FranzAtGithub
9c4a95d055
Fix typo in xpip command for updating xonsh ( #4468 )
2021-09-14 12:55:19 -04:00
Noorhteen Raja NJ
d7dbfa9011
Lab/py control file ( #4420 )
...
* feat: use python's compile for rc.py
* docs: add news item
* docs: update news item
* test: add tests for py-control files
* fix: rst news item
* docs: update news item
* docs: add sample rc.py
2021-08-19 12:40:22 -04:00
Daniel Shimon
201b24235e
docs: Remove highlight shortcuts 'beta' tag ( #4403 )
2021-08-16 11:42:34 -04:00
Daniel Shimon
f5acbe30d4
Ctrl backspace delete word ( #4402 )
...
* ptk: key-bindings: Add CTRL-Backspace to delete a single word
* news: Add ctrl-backspace-delete-word
2021-08-01 00:38:31 +03:00
Daniel Shimon
279d0ec638
Auto suggest word alias ( #4401 )
...
* ptk: key-bindings: Add CTRL-Right to auto-suggest a word
* news: Add auto-suggest-word-alias
2021-07-29 12:50:47 +03:00
Peter Ye
b74bdbcc72
docs: fix typo in prompt tutorial ( #4335 )
2021-06-22 19:49:54 +03:00
Peter Ye
4f3c5196f3
docs: Remove duplicate Installation heading ( #4326 )
2021-06-20 12:51:31 +03:00
Daniel Shimon
099d301fae
Update completers tutorial ( #4307 )
...
* docs: completions: Improve RichCompletion and CompletionContext api docs
* docs: completers: Update tutorial
* completers: tools: Print non-default values in RichCompletion's __repr__
* completers: Add $XONSH_TRACE_COMPLETIONS variable
* news: Add update-completers-tutorial
2021-06-05 19:12:58 +03:00
Noorhteen Raja NJ
38295a1dd9
Remove globals ( #4280 )
...
* refactor: remove usage of global variables in abbrevs.py
* chore: add flake8-mutable to prevent mutable defaults
* fix: abbrevs expand test
* refactor: add xonsh session singleton
* refactor: fix circular errors when using xonshSession as singleton
* refactor: remove black magicked builtin attributes
* style: black format tests as well
* refactor: update tests to use xonsh-session singleton
* refactor: update abbrevs to not use builtins
* test: remove DummyCommandsCache and patch orig class
* fix: failing test_command_completers
* test: use monkeypatch to update xession fixture
* fix: failing test_pipelines
* fix: failing test_main
* chore: run test suit as single invocation
* test: fix tests/test_xonsh.xsh
* refactor: remove builtins from docs/conf.py
* fix: mypy error in jobs
* fix: test error from test_main
* test: close xession error in test_command_completers
* chore: use pytest-cov for reporting coverage
this will include subprocess calls, and will increase coverage
* style:
2021-05-20 13:14:26 +03:00
Gordon Ball
d48c93bdb5
Add support for rc.d drop-in configuration directories ( #4256 )
...
* Add support for rc.d drop-in configuration directories
* main: change how --rc, --no-rc are handled
Explicitly pass --no-rc rather than signalling it as an empty --rc, to
indicate that we should suppress both XONSHRC and XONSHRCDIR in that
case.
* Rename XONSHRCDIR -> XONSHRC_DIR
* xonshrc_context: document setting env for XONSHRC_DIR
* main: --rc foo.xsh should suppress XONSHRC_DIR
2021-05-11 16:42:37 -04:00
Andy Kipp
22cc03b462
docs: Fix image preview for the twitter ( #4274 )
...
* twitter
* twitter
* 3.6
Co-authored-by: a <a@a.a>
2021-05-10 09:38:24 -04:00
Andy Kipp
039ce96dcd
feat: Added ability to get arguments list in ExecAlias ( #4201 )
...
* black
* news
* test
* alias_argN
* ExecAlias docs
* note about merge operator
* $args
* docs
Co-authored-by: a <a@a.a>
2021-04-15 09:39:13 -04:00
francium
c563ebb7a2
Improve homepage navigation links ( #4228 )
2021-04-15 09:36:34 -04:00
Evgeny
3df1426f8e
Updated references to point to 'main' instead of 'master' ( #4202 )
...
* doc: update path to the most recent xonsh source code ('master' to 'main')
* doc: change 'master' to 'main' in some doc references
2021-03-30 13:40:43 -04:00
Andy Kipp
9618fa2a36
Added casting CommandPipeline to int, hash, str ( #4205 )
...
* cast
* test
* added tests and str
* news
* test
* skip windows
* docs
* docs
* tests
Co-authored-by: a <a@a.a>
2021-03-30 13:36:01 -04:00
Andy Kipp
b9065eba89
Update robots.txt ( #4197 )
2021-03-22 10:54:59 -04:00
Andy Kipp
38e1383b63
Update tutorial.rst ( #4174 )
...
Co-authored-by: a <a>
2021-03-16 13:52:11 -04:00
Andy Kipp
4975fa7f8f
Update contact.rst ( #4169 )
...
Co-authored-by: a <a>
2021-03-16 11:50:35 -04:00
Andy Kipp
c1118f3180
docs: copy robots.txt second try ( #4171 )
...
* Update conf.py
* Delete robots.txt
* Create robots.txt
2021-03-12 09:39:48 -05:00
Andy Kipp
1269a6a393
Update conf.py ( #4170 )
2021-03-11 12:33:27 -05:00
Andy Kipp
d51963538d
docs: small changes ( #4165 )
...
* docs
* docs
* talks
Co-authored-by: a <a>
2021-03-11 09:09:36 -05:00
Andy Kipp
1c5a6f3770
robots.txt ( #4166 )
...
Co-authored-by: a <a>
2021-03-11 09:07:22 -05:00
Andy Kipp
2913ec7775
docs: Running xonsh AppImage on Alpine ( #4159 )
...
* xonsh AppImage on Alpine
* Create appimage_alpine.rst
2021-03-10 09:27:25 -05:00
Andy Kipp
c06872080e
quotes ( #4150 )
...
Co-authored-by: a <a>
2021-03-07 09:54:59 -05:00
Andy Kirby
9b3f55c8d9
Update talks_and_articles.rst ( #4140 )
2021-03-05 10:15:39 -05:00
Andy Kirby
dde0794ced
Update index.html ( #4142 )
2021-03-05 10:06:16 -05:00
anki-code
86c4dec1bb
New awesome landing (v3) ( #4122 )
...
* awesome landing
* text
* Update docs/_templates_overwrite/index.html
Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
* Update docs/_templates_overwrite/index.html
Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
* Update docs/_templates_overwrite/index.html
Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
* Update docs/_templates_overwrite/index.html
Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
* Update docs/_templates_overwrite/index.html
Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
* Update docs/_templates_overwrite/index.html
Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
* Update docs/_templates_overwrite/index.html
Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
* Update docs/_templates_overwrite/index.html
Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
* Talks about xonsh
* Q&A
* xontribs from github
* xontribs from github
* Update docs/_templates_overwrite/index.html
Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
* Update docs/_templates_overwrite/index.html
Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
* xontribs from github
Co-authored-by: a <a>
Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
2021-03-02 08:50:54 -05:00
anki-code
2b80fc3f3d
Small docs fixes ( #4124 )
...
* button
* transparent png
* transparent png
* github xontribs
* transparent png
* moving windows note
* removing broken link
* talks added
* talks added
Co-authored-by: a <a>
2021-03-01 10:44:17 -05:00
anki-code
c3c655dacf
A bit docs around subprocess strings for sh-ers ( #4114 )
...
* Update bash_to_xsh.rst
* Update bash_to_xsh.rst
2021-02-22 10:28:36 -05:00
Nate Simon
c4e7843598
add disown command ( #4090 )
...
* add "disown" internal command
This command will remove jobs from the shell's job table, allowing the command
to continue running after the shell exits. Configuration options are provided
to manage how suspended background jobs are handled after being disowned.
* job-ctrl-disown code style update
* job-ctrl-disown style updates + change arg --cont to --continue
* Trim extra "=" in doc for "disown" cmd
Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
2021-02-09 10:54:17 -05:00
Faris A Chugthai
b163e6f7cd
Update tutorial_ptk.rst ( #4052 )
...
Using `_` to indicate italics only works in Markdown. Use `*` to modify text in restructuredText
2021-01-11 11:44:50 -05:00
Noorhteen Raja NJ
bceaafae4d
Add groups to env vars ( #4026 )
...
* feat: add grouped-settings for env variables
fixes #4014
style: fix mypy errors
chore: update testing requirements versions
fix: update xonsh.tools import error
* chore: add news item
* fix: update Var.with_default handling env defaults
* fix: set env var.doc_default=DefaultNotGiven
there is a custom handler for it
* chore: update travis
speedup docs generation
* chore: add command to serve docs during development
* docs: add jinja2 helpers/renderers extension for sphinx
* docs: update envvars document
* docs: fix docs failing
* Update xonsh/environ.py
commit suggestion
Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
* Update xonsh/environ.py
Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
* Update xonsh/environ.py
Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
* Update xonsh/environ.py
Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
* Update xonsh/environ.py
Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
* Update xonsh/environ.py
Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
* refactor: update rst-extension
Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
2021-01-04 12:21:44 -05:00
Noorhteen Raja NJ
a083d28461
Completer py api ( #4018 )
...
* feat: add index to sqlite-history table
* feat: support style argument to RichCompletion object
this will enable setting style for ptk completers
* feat: add xonsh cli/argparser utils
* feat: add python api for adding/removing completers
fixes #3972
* fix: mypy error
* docs: add api doc
* fix: circular imports
* docs:
* fix: testing get-doc cross-platform
* Update xonsh/completers/_aliases.py
Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
* Update xonsh/completers/_aliases.py
Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
* style: convert % to f-strings
Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
2020-12-16 14:26:22 -05:00
Henré Botha
e14a17b208
Fix typo
2020-11-26 14:27:33 +01:00
Anthony Scopatz
a1b95730c0
Merge pull request #3992 from colons/vc_branch-in-docs
...
Fix the import in the branch colour override example.
2020-11-25 12:47:42 -06:00
Anthony Scopatz
3b4522b134
Merge pull request #3994 from anki-code/fix_docs_exec
...
fix aliases.rst
2020-11-25 12:46:36 -06:00
a
cf0e660783
fix rst
2020-11-25 20:08:24 +03:00
colons
6c4d2a05fa
Fix the import in the branch colour override example.
2020-11-25 12:10:42 +00:00
Anthony Scopatz
913077b0b0
Merge pull request #3960 from jnoortheen/use-individual-file-for-xontrib-meta
...
Use individual file for xontrib meta
2020-11-10 14:44:41 -06:00
Noortheen Raja
d367ed2361
docs: update xontribs tutorial
2020-11-11 00:13:36 +05:30