diff --git a/README.md b/README.md index e8655979..b111350e 100644 --- a/README.md +++ b/README.md @@ -73,8 +73,8 @@ As (yet another) process/system visualization and management application, bottom - [A process widget](https://clementtsang.github.io/bottom/nightly/usage/widgets/process/) for displaying, sorting, and searching info about processes, as well as support for: - - Kill signals - - Tree mode + - [Kill signals](https://clementtsang.github.io/bottom/nightly/usage/widgets/process/#process-termination) + - [Tree mode](https://clementtsang.github.io/bottom/nightly/usage/widgets/process/#tree-mode) - Cross-platform support for Linux, macOS, and Windows, with more planned in the future. diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 00000000..33d89d17 --- /dev/null +++ b/docs/README.md @@ -0,0 +1,47 @@ +# Extended Documentation + +This is where the extended documentation resides, hosted on GitHub Pages. We use [MkDocs](https://www.mkdocs.org/), +[Material for MkDocs](https://squidfunk.github.io/mkdocs-material/), and [mike](https://github.com/jimporter/mike). + +## Running locally + +```bash +# Change directories to the documentation. +cd docs/ + +# Create and activate venv. +python -m venv venv +source venv/bin/activate + +# Install requirements +pip install -r requirements.txt + +# Run mkdocs +venv/bin/mkdocs serve +``` + +## Deploying + +Deploying is done via [mike](https://github.com/jimporter/mike). + +### Nightly + +```bash +cd docs +mike deploy nightly --push +``` + +### Stable + +```bash +cd docs + +# Rename the previous stable version +mike retitle --push stable $OLD_STABLE_VERSION + +# Set the newest version as the most recent stable version +mike deploy --push --update-aliases $RELEASE_VERSION stable + +# Append a "(stable)" string to the end. +mike retitle --push $RELEASE_VERSION "$RELEASE_VERSION (stable)" +``` diff --git a/docs/content/assets/screenshots/process/process_kill_linux.webp b/docs/content/assets/screenshots/process/process_kill_linux.webp new file mode 100644 index 00000000..26fbb78e Binary files /dev/null and b/docs/content/assets/screenshots/process/process_kill_linux.webp differ diff --git a/docs/content/assets/screenshots/process/process_kill_simple.webp b/docs/content/assets/screenshots/process/process_kill_simple.webp new file mode 100644 index 00000000..c349c2ae Binary files /dev/null and b/docs/content/assets/screenshots/process/process_kill_simple.webp differ diff --git a/docs/content/contribution/documentation.md b/docs/content/contribution/documentation.md index b39ca709..5a1a6ad6 100644 --- a/docs/content/contribution/documentation.md +++ b/docs/content/contribution/documentation.md @@ -2,43 +2,49 @@ ## When should documentation changes be done? -- Whenever a new feature is added, a bug is fixed, or a breaking change is made, it should be documented where appropriate (ex: `README.md`, changelog, etc.) +- Whenever a new feature is added, a bug is fixed, or a breaking change is made, it should be documented where + appropriate (ex: `README.md`, changelog, etc.) - New methods of installation are always appreciated and should be documented ## What pages need documentation? There are a few areas where documentation changes are often needed: -- The [extended documentation](https://clementtsang.github.io/bottom/nightly/) (AKA here) - The [`README.md`](https://github.com/ClementTsang/bottom/blob/master/README.md) - The help menu inside of the application (located [here](https://github.com/ClementTsang/bottom/blob/master/src/constants.rs)) +- The [extended documentation](https://clementtsang.github.io/bottom/nightly/) (here) - The [`CHANGELOG.md`](https://github.com/ClementTsang/bottom/blob/master/CHANGELOG.md) -## How should I add documentation? +## How should I add/update documentation? -1. Fork the repository first and make changes there. +1. Fork the repository to make changes in. 2. Where you're adding documentation will probably affect what you need to do: - ### `README.md` or `CHANGELOG.md` +
README.md or CHANGELOG.md
-
- btm --dot_markerbtm --dot_marker
-
diff --git a/docs/content/usage/widgets/process.md b/docs/content/usage/widgets/process.md
index 3285a7a3..5b157019 100644
--- a/docs/content/usage/widgets/process.md
+++ b/docs/content/usage/widgets/process.md
@@ -50,6 +50,24 @@ is added together when displayed.
Note that the process state and user columns are disabled in this mode.
+### Process termination
+
+Pressing ++d+d++ or ++f9++ will allow you to terminate the currently selected process/process group. On Unix-like
+operating systems, you are also able to control which specific signals to send (e.g. `SIGKILL`, `SIGTERM`).
+
+
+
+