Skip to content

Commit

Permalink
Updates15 (#32)
Browse files Browse the repository at this point in the history
* Applying dropdownAutoWidth for select-type

* Adding table data export in JSON,PDF

* New package release version

* Testing XML export but it does not work yet

* Fixing exiting filter input window in table and file modes
The new tooltip format x/y indicates the current position (x) of an item in the Sphinx-Needs listbox relative to the total number of items (y) that match the active filter(s).

* Fixing trigerring multiple keydown events when reentering network mode

* Fixing moving focus

* Implementing keyboard shortcuts for dragView and zoomView
Resolving GUI issues, including improper focus behavior post-help and select-type operations.

* You can now control which node types are visible or hidden in the network using the node types filter.

* Introducing CHANGELOG.md

* Updating documentation

* Opening port to ollama
  • Loading branch information
mi-parkes authored Nov 17, 2024
1 parent 580e70c commit 803da71
Show file tree
Hide file tree
Showing 11 changed files with 340 additions and 119 deletions.
4 changes: 3 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"context": ".."
},
"runArgs": [
"-v","${localWorkspaceFolder}:/workspace"
"-v","${localWorkspaceFolder}:/workspace",
"--network=host",
"-p=11434:11434"
],
"workspaceFolder": "/workspace",
"postCreateCommand": "poetry install;/usr/bin/bash",
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
"editor.insertSpaces": true,
"editor.detectIndentation": false,
"plantuml.jar":"${env:PLANTUML_PATH}",
"liveServer.settings.root": "doc/build/html"
"liveServer.settings.root": "doc/build/html",
"liveServer.settings.port": 5501
}
53 changes: 53 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# v0.93.0 - 2024-11-17

### Added
- Table export support for JSON and PDF formats.
- Node types filter: control which node types are visible or hidden in the network.
- Keyboard shortcuts for `dragView` and `zoomView`.

### Fixed
- Resolved GUI issues, including improper focus behavior after help or select-type operations.
- Fixed multiple `keydown` events being triggered when re-entering network mode.
- Fixed exiting the filter input window in table and file modes.

### Changed
- Applied `dropdownAutoWidth` for `select-type` dropdown, improving usability.
- Updated the format of displayed information about the number of nodes matching active filter(s).
- The format `x/y` now indicates the current position (`x`) of an item in the Sphinx-Needs listbox relative to the total number of items (`y`) that match the active filter(s).
- `NDV` stands for Neighborhood Depth View.

# v0.92.0 - 2024-11-14

### Added
- Support for filtering both incoming and outgoing link types (e.g., `satisfies`, `satisfies_back`).

# v0.91.0 - 2024-11-13

### Fixed
- References to non-existing IDs in table view are now handled properly.

# v0.90.0 - 2024-10-11

### Added
- Support to negate the content of a single bracket.
- Added `devcontainer` for development environment setup.
- Included `.vscode` configuration for streamlined development.
- Enabled `README.md` to be used by PyPI and Sphinx, including all image rendering.

### Changed
- Moved the package build process to Poetry for managing dependencies and packaging.
- Defining poetry tasks: black, clean, doc, doc-clean,..
- Set image URLs in `README.md`to frozen revision for stability.
- Updated documentation.
- Reformatted codebase using Black.

### Fixed
- Resolved issues with viewing node attributes.
- Ensured `GNU Makefile` exits on the first error during execution.

### Removed
- Removed manually generated documentation from version control in favor of automated alternatives using GitHub Actions.

### Miscellaneous
- Minor changes and optimizations.

20 changes: 12 additions & 8 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
Sphinx Needs Data Explorer
##########################

The `sphinx_needs_data_explorer` is a web application written in HTML, CSS, and JavaScript,
provided as a `Sphinx <https://www.sphinx-doc.org/en/master/index.html>`_ extension. It enhances
the interactivity of your Sphinx-generated documentation by enabling you to explore
`needs.json <https://mi-parkes.github.io/sphinx-needs-data-explorer/needs.json>`_
sphinx-needs-data generated by the `Sphinx-Needs <https://www.sphinx-needs.com>`_ extension.
The ``sphinx_needs_data_explorer`` is a web application built with HTML, CSS, and JavaScript, offered
as a `Sphinx <https://www.sphinx-doc.org/en/master/index.html>`_ extension. Created as a personal
open-source project, it enhances the interactivity of Sphinx-generated documentation by enabling
users to explore the `needs.json <https://mi-parkes.github.io/sphinx-needs-data-explorer/needs.json>`_
data produced by the `Sphinx-Needs <https://www.sphinx-needs.com>`_ extension. Users can filter data
attributes and view the data in three distinct modes: `network-view`_,
`table-view`_ , and `file-view`_.
Additionally, it supports generating reports in various formats, making it a powerful and flexible
tool for analyzing and presenting documentation data.

Goals and Realization
#####################
Expand All @@ -18,7 +22,7 @@ Features
Three Sphinx-Needs Data View Perspectives
=========================================

`Network-View`
Network-View
--------------
In Network-View-Perspective you can see how sphinx-needs data are interconnected in data networks.

Expand All @@ -34,14 +38,14 @@ You can choose **network layout**

.. image:: https://raw.githubusercontent.com/mi-parkes/sphinx-needs-data-explorer/41b530aa785343e4d378f0a5664ce520b158ed16/doc/source/images/network-perspective.jpg

`Table-View`
Table-View
------------
In Table-View-Perspective you can see sphinx-needs data in table. You can select which columns should
be visible and which hidden.

.. image:: https://raw.githubusercontent.com/mi-parkes/sphinx-needs-data-explorer/41b530aa785343e4d378f0a5664ce520b158ed16/doc/source/images/table-perspective.jpg

`File-View`
File-View
-----------
In File-View-Perspective, you can see a list of files in which Sphinx-needs data were found.

Expand Down
5 changes: 3 additions & 2 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@
project = "Sphinx Needs Data Explorer"
copyright = "2024, MP"
author = "MP"
release = "0.9.2"
version = "0.9.2"
release = "0.9.3"
version = "0.9.3"
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

extensions = [
"sphinx_needs",
"sphinx_copybutton",
"sphinx.ext.autosectionlabel",
"sphinx.ext.githubpages",
"sphinxcontrib.plantuml",
"myst_parser",
Expand Down
6 changes: 4 additions & 2 deletions doc/source/dummy.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
:orphan:

DUMMY
#####
..
This is a heck to force including sphinx_needs_data_explorer.svg in
generated documentation
:orphan:

.. image:: images/sphinx_needs_data_explorer.svg
4 changes: 0 additions & 4 deletions doc/source/index.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
##########################
Sphinx Needs Data Explorer
##########################

.. include:: _README.rst

Test it in Action
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ license = {file = "LICENSE"}

[tool.poetry]
name = "sphinx_needs_data_explorer"
version = "0.9.2"
version = "0.9.3"
description = "Sphinx-needs-data-explorer is a Sphinx extension to visualize Sphinx-Needs data"
authors = ["Michael Parkes <[email protected]>"]
readme = "README.rst"
Expand Down
4 changes: 2 additions & 2 deletions sphinx_needs_data_explorer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
from sphinx.util import logging
from sphinx.errors import ExtensionError

__version__ = "0.9.2"
version_info = (0, 9, 2)
__version__ = "0.9.3"
version_info = (0, 9, 3)

logger = logging.getLogger(__name__)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ div.dataTables_length select {
.bigdrop {
width: 900px !important;
margin-top: +20px;
position: fixed;
left: 50px !important;
font-size: 22px;
position: fixed;
}

.bigdropFilter {
Expand Down
Loading

0 comments on commit 803da71

Please sign in to comment.