Skip to content

Commit

Permalink
#59 - Apply brainstorming vision
Browse files Browse the repository at this point in the history
- Update README.md file to better explain term documentation issue.
- Create VISION.md to show and shortly describe future vision.
  • Loading branch information
miroslavpojer committed Oct 30, 2024
1 parent f7f8814 commit 8710343
Show file tree
Hide file tree
Showing 3 changed files with 250 additions and 1 deletion.
44 changes: 43 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
- [Expected Output](#expected-output)
- [Index page example](#index-page-example)
- [Issue page example](#issue-page-example)
- [Documentation Issue Introduction](#documentation-issue-introduction)
- [Labels](#labels)
- [Relation Among Doc Issue Types](#relation-among-doc-issue-types)
- [Hosting Doc Issues in a Solo Repository](#hosting-doc-issues-in-a-solo-repository)
- [Project Setup](#project-setup)
- [Run Scripts Locally](#run-scripts-locally)
- [Run Pylint Check Locally](#run-pylint-check-locally)
Expand All @@ -28,7 +32,9 @@
- [License Information](#license-information)
- [Contact or Support Information](#contact-or-support-information)

A tool designed to data-mine GitHub repositories for issues containing project documentation (e.g. tagged with feature-related labels). This tool automatically generates comprehensive living documentation in Markdown format, providing detailed feature overview pages and in-depth feature descriptions.
![vision.jpg](img/vision.jpg)

A tool designed to data-mine GitHub repositories for [documentation issues](#documentation-issue-introduction) containing project documentation (e.g. tagged with feature-related labels). This tool automatically generates comprehensive living documentation in Markdown format, providing detailed feature overview pages and in-depth feature descriptions.

## Motivation
Addresses the need for continuously updated documentation accessible to all team members and stakeholders. Achieves this by extracting information directly from GitHub issues and integrating this functionality to deliver real-time, markdown-formatted output. Ensures everyone has the most current project details, fostering better communication and efficiency throughout development.
Expand Down Expand Up @@ -286,6 +292,42 @@ Users often struggle to find specific books in a large catalog. An advanced sear
...
```

## Documentation Issue Introduction
A **Documentation Issue** is a focused, ongoing issue dedicated to project documentation. Unlike development-focused issues, Documentation Issues remain open continuously, evolving as updates are needed, and can be reopened or revised indefinitely. They are not directly tied to Pull Requests (PRs) but can be referenced for context.

- **Content Rules**:
- **Non-technical Focus:**
- Keep the documentation body free of technical solution specifics.
- Technical insights should be accessible through linked PRs or Issues within the development repository.
- **Independent Documentation:**
- Ensure the content remains independent of implementation details to allow a clear, high-level view of the feature or user story's purpose and functionality.

### Labels
To enhance clarity, the following label groups define and categorize each Documentation Issue:
- **Topic**:
- **{Name}Topic:** Designates the main focus area or theme relevant to the issue, assigned by the editor for consistency across related documentation.
- **noTopic:** Indicates that the issue does not align with a specific topic, based on the editor's discretion.
- **Type**:
- **DocumentedUserStory:** Describes a user-centric functionality or process, highlighting its purpose and value.
- Encompasses multiple features, capturing the broader goal from a user perspective.
- **DocumentedFeature:** Details a specific feature, providing a breakdown of its components and intended outcomes.
- Built from various requirements and can relate to multiple User Stories, offering an in-depth look at functionality.
- **DocumentedRequirement:** Outlines individual requirements or enhancements tied to the feature or user story.
- **Issue States**:
- **Upcoming:** The feature, story, or requirement is planned but not yet implemented.
- **Implemented:** The feature or requirement has been completed and is in active use.
- **Deprecated:** The feature or requirement has been phased out or replaced and is no longer supported.

**DocumentedUserStory** and **DocumentedFeature** serve as **Epics**, whereas **DocumentedRequirement** represents specific items similar to feature enhancements or individual requirements.

### Hosting Doc Issues in a Solo Repository
Using a dedicated repository solely for documentation issues provides multiple advantages:
- **Streamlined Management:** This avoids cross-project conflicts and board exclusions and enables specialized templates solely for documentation purposes.
- **Focused Access Control:** This allows a small team to manage and edit documentation without interference, maintaining high-quality content.
- **Optimized Data Mining:** Supports easier and more efficient data extraction for feedback and review cycles through Release Notes.
- **Implementation Reflection:** Mirrors elements from the implementation repositories, providing a high-level knowledge source that is valuable for both business and technical teams.
- **Release Notes Integration:** Documentation can evolve based on insights from release notes, serving as a dynamic feedback loop back to the documentation repository.

## Project Setup
If you need to build the action locally, follow these steps:

Expand Down
207 changes: 207 additions & 0 deletions VISION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,207 @@
# Living Documentation Generator

- [Purpose of this Page](#purpose-of-this-page)
- [Regimes and Their Usage](#regimes-and-their-usage)
- [DocumentedUserStories](#documenteduserstories)
- [DocumentedFeatures](#documentedfeatures)
- [DocumentedRequirements](#documentedrequirements)
- [Coverage matrix](#coverage-matrix)
- [Repositor(y/ies) YML Files](#repository-yml-files)
- [Incidents](#incidents)
- [Release Notes](#release-notes)
- [User Guide](#user-guide)
- [Rationale for an Isolated GitHub Repository](#rationale-for-an-isolated-github-repository)
- [Proposed Issue Content Examples](#proposed-issue-content-examples)
- [Content Formatting for Documentation Types (US, Features, Req)](#content-formatting-for-documentation-types-us-features-req)
- [Examples](#examples)
- [DocumentedUserStory GH Issue](#documenteduserstory-gh-issue)
- [DocumentedFeature GH Issue](#documentedfeature-gh-issue)
- [DocumentedRequirement GH Issue](#documentedrequirement-gh-issue)

## Purpose of this Page
The goals of this document are to:
- Outline features yet to be implemented.
- Expand upon the content provided in README.md.

## Regimes and Their Usage
Outlined below are the various regimes, their intended purposes, and the specific inputs and outputs associated with each.
### DocumentedUserStories
Produces documentation centered on user-oriented stories that outline workflows or features from the user’s perspective.
- Build on expectation that User Stories are one of the minimum unit of documentation to be created.
- When enabled with DocumentedFeatures regime and relation between User Stories and Features is established, both outputs can be connected by the links.

### DocumentedFeatures
Produces documentation specifically for project features.
- Build on expectation that Features are one of the minimum unit of documentation to be created.
- **Default** in current implementation.

### DocumentedRequirements
Produces documentation for granular requirements tied to specific features.
- Can be operated only with DocumentedFeatures regime enabled.

### Coverage matrix
Provides an overview of the test coverage for User Stories, Features, and Requirements, enabling teams to track documentation alignment with test validation. This feature visualizes test completeness by listing covered items across unit, integration, and E2E tests, helping to identify any gaps in the test suite for crucial documentation items.

### Repositor(y/ies) YML Files
Generates an organized summary of all .yml files within specified repositories, capturing key details such as events, jobs, and workflows. This overview can serve as a quick reference for repository configurations, supporting consistent CI/CD practices across projects.

### Incidents
Documents historical and active incidents related to the project, capturing details such as incident type, affected features or requirements, severity level, and resolution status. This feature enhances transparency and helps trace issues back to related documentation for streamlined troubleshooting and future prevention.

### Release Notes
Generates consolidated release notes summarizing feature deployments, updates, and deprecations. Links back to related documentation issues, features, and requirements provide context, enabling easy navigation from release highlights to detailed documentation. This feature supports alignment across development, testing, and business stakeholders by providing a clear view of project progress.

### User Guide
Uses **DocumentedUserStories** as the foundational data source to build a User Guide.
- **Content:**
- Each User Story should define a required input for User Guide generation.
- Each User Story should ideally include one end-to-end (E2E) test, with a preference for automation to ensure repeatable validation.
- E2E test should generate screenshots for User Guide inclusion.
- **Structure:**
- **Body:** Organizes content into well-defined, categorized chapters.
- **Steps:** Includes descriptive steps with illustrative images for better clarity and user comprehension.

## Rationale for an Isolated GitHub Repository
Hosting documentation issues in a dedicated GitHub repository offers several key benefits:
- **Process Clarity and Separation:** Maintains a clear boundary between documentation issues and active project issues, reducing clutter and ensuring documentation is easily accessible without interference from active development.
- **Pilot Platform:** Serves as an initial testing ground for the documentation approach, enabling iterative improvements based on early feedback.
- **Controlled Access:** Limits editing permissions to a core group, ensuring content accuracy and consistency, while allowing broader read-only access for stakeholders and team members.

## Proposed Issue Content Examples
Here are structural suggestions for key documentation types, using examples to clarify content organization:
- **User Stories (US):** Outlines overarching user needs and goals, providing context for related features.
- **Features:** Describes specific aspects or components supporting the User Story, broken down into clear, actionable tasks.
- **Requirements (Req)**: Lists individual requirements essential for completing a feature, enhancing detail and traceability.

**Using Task Lists:** Leverage task lists in both User Stories and Features to improve clarity and progress tracking.

## Content Formatting for Documentation Types (US, Features, Req)
A consistent structure helps standardize documentation across different types:
- **Open Format:**
- **Information Collection:** Use an initial section to gather relevant information at the start.
- **Description:** Separate sections for high-level descriptions to serve both documentation and User Guide purposes (in case of US).
- **Body (Markdown):**
- **Topic:**
- Requirements do not need a topic.
- For Features, each issue should focus on a single topic (as a label).
- User Stories are broader in scope.
- **Versioning:**
- **Expected:** Specifies the target version for initial release.
- **Available:** Indicates the actual version released.
- **Deprecated from:** States the version from which the feature or requirement is no longer supported.
- Note: Version can link to Release Notes.
- **Dependencies:**
- No direct linkage to development issues or PRs is required.

This structure is intended to ensure consistency, clarity, and easy navigation across documentation types, fostering a cohesive understanding of project features and requirements.

## Examples
Mined information, not needed to repeat in body of the issue:
- **Unique-ID**: AbsaOSS/any-project-docs/4
- **Type:** DocumentedUserStory, DocumentedFeature, DocumentedRequirement (from label)
- **Topic:** SearchingTopic (from label)
- **State:** Upcoming, Implemented, Deprecated (from label)

### DocumentedUserStory GH Issue
````markdown
# User Story
- Title: Advanced Search Functionality
- Version:
- Expected: v1.2
- Available: v1.2.1
- Deprecated from: v5.3

## Description
As a user, I want to be able to perform advanced searches within the application, so I can quickly locate specific content based on multiple filters and criteria.

## Acceptance Criteria
- The user can apply multiple filters simultaneously (e.g., date range, category).
- The search results update dynamically based on selected filters.
- The search results display within 2 seconds.

```[tasklist]
## Related Features
- [ ] #5
- [ ] #6
- [ ] #34
```

## User Guide
### Description
This user story covers the advanced search functionality, enabling users to locate specific information efficiently by setting filters. Each step of the search experience is tailored for usability and speed.

### End-to-End Test to Guide Steps
- Automated: True
- Prerequisite:
- Ensure at least one searchable object is in the database and that the user has access to the advanced search page.
- Steps:
- Step 1: Open the search page.
- Step 2: Define the search criteria. (screenshot: step-2.png)
- Step 3: Apply multiple filters.
- Step 4: Verify the search results update correctly. (screenshot: step-4.png)
- Step 5: Verify the search results display within 2 seconds.

## Change Log
| Version | Date | Comment |
|---------|------------|----------------------------------|
| v1 | 2024-10-30 | Initial version of the User Story |
````

### DocumentedFeature GH Issue
````markdown
# Feature
- Title: Date Filter for Search
- Version:
- Expected: v1.2
- Available: v1.2.1
- Deprecated from: -

## Description
The Date Filter allows users to narrow down search results by selecting a specific start and end date. It enhances search precision, especially for time-sensitive data.

```[tasklist]
## Related User Stories
- [ ] #2
```

```[tasklist]
## Related Requirements
- [ ] #45
- [ ] #46
```

## Change Log

| Version | Date | Comment |
|---------|------------|----------------------------------|
| v1 | 2024-10-30 | Initial version of the Feature |

````

### DocumentedRequirement GH Issue
````markdown
# Requirement
- Title: Filter Search Results by Date Range
- Priority: High
- Version:
- Expected: v1.1
- Available: v1.1.5

## Description (What User does)
The user selects a start and end date to limit search results to items within that date range.

## Rationale (What User may want)
The user may want to focus on specific periods to find relevant information faster or analyze data from a particular timeframe.

```[tasklist]
## Associated Feature
- [ ] #2
```

## Change Log

| Version | Date | Comment |
|---------|------------|----------------------------------|
| v1 | 2024-10-30 | Initial version of the Requirement |

````
Binary file added img/vision.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8710343

Please sign in to comment.