Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
0f48bfe
Hides empty structs when the items are directories/namespaces.
esmeace Apr 9, 2026
28c552c
Adds the link to the namespace struct.
esmeace Apr 9, 2026
275f9bc
Adapted the templates to Bootstrap 5.3 and Jquery 3.7.
esmeace Apr 9, 2026
14e37e9
Adjusted contrast color.
esmeace Apr 9, 2026
785c1b1
Adjust colors to comply with accessibility guidelines.
esmeace Apr 9, 2026
3d0f2af
Converts frame layout to Single Page App with the use of Alpine.js.
esmeace Apr 9, 2026
ce08d9f
Removes empty help from navigation.
esmeace Apr 9, 2026
71c7850
Adds CommandBox svg icon.
esmeace Apr 9, 2026
3fe00e6
Correct toggle issue with menu.
esmeace Apr 9, 2026
53d9323
Corrects heading hierarchy.
esmeace Apr 9, 2026
c1e97e5
Corrects spacing in breadcrumbs.
esmeace Apr 9, 2026
5e303af
Restores meta title.
esmeace Apr 9, 2026
22a4b1b
Moved template file to theme directory.
esmeace Apr 13, 2026
930af6b
Adds ability to theme the CommandBox Strategy.
esmeace Apr 13, 2026
31044bb
Adds Alpine and Bootstrap-icons to static assets, for offline renderi…
esmeace Apr 13, 2026
49f5e4e
Updates to merge the default themes' CSS.
esmeace Apr 14, 2026
d41c2dd
Updated CSS to be used for both the api and the CommandBox default th…
esmeace Apr 14, 2026
70f215f
Corrected unreadable text.
esmeace Apr 14, 2026
d3e80df
Makes use of the api default theme' CSS.
esmeace Apr 14, 2026
efe206f
Renamed classes to be shared by the api and the CommandBox strategies.
esmeace Apr 14, 2026
9797bc8
Removed no longer needed stylesheet.
esmeace Apr 14, 2026
62eb975
Changed navigation to a list.
esmeace Apr 15, 2026
6d0a2fa
Moved scripts to the bottom of the body.
esmeace Apr 15, 2026
44838ff
Replaced the x-show with x-if to remove the block from the DOM for be…
esmeace Apr 15, 2026
1da5d1a
Added missing Namespaces table.
esmeace Apr 15, 2026
794f251
Fixes the inability to click on a child namespace to show the namespa…
esmeace Apr 15, 2026
1fd5140
Fixes breadcrumbs.
esmeace Apr 15, 2026
bae5ad7
Corrected display of Commands heading in sidebar.
esmeace Apr 15, 2026
14e91ed
Formats html.
esmeace Apr 15, 2026
0682a65
Removed no longer used navigation.
esmeace Apr 15, 2026
94e6655
Fixed formatting.
esmeace Apr 15, 2026
ff02e76
Added view of the System Commands.
esmeace Apr 15, 2026
0e3e93b
Added tests to test new theme.
esmeace Apr 15, 2026
bebb82f
Update strategy/api/themes/default/resources/templates/index.cfm
esmeace Apr 15, 2026
cbb1a29
Update strategy/CommandBox/themes/default/resources/templates/generat…
esmeace Apr 15, 2026
d0854a1
Update strategy/AbstractTemplateStrategy.cfc
esmeace Apr 15, 2026
3416952
Update strategy/api/themes/default/resources/static/css/stylesheet.css
esmeace Apr 15, 2026
a747397
Resolves duplicate fetches/renders for the same command.
esmeace Apr 15, 2026
9160483
Update strategy/CommandBox/CommandBoxStrategy.cfc
esmeace Apr 15, 2026
e02eb30
Fix CI failures: formatting and HTML injection vulnerability
Copilot Apr 15, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions strategy/AbstractTemplateStrategy.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,9 @@ abstract component accessors="true" implements="IStrategy" {

// If this is a class, output it
if ( structKeyExists( itemValue, "$#arguments.classTerm#" ) ) {
if ( structIsEmpty( itemValue[ "$#arguments.classTerm#" ] ) ) {
continue;
}
var linkData = itemValue[ "$#arguments.classTerm#" ];
writeOutput( "<li data-jstree='{ ""type"" : ""#arguments.classTerm#"" }' linkhref=""#linkData.link#"" searchlist=""#linkData.searchList#"" thissort=""2"">" );
writeOutput( item );
Expand Down
32 changes: 28 additions & 4 deletions strategy/CommandBox/CommandBoxStrategy.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,24 @@ component extends="docbox.strategy.api.HTMLAPIStrategy" {
*/
function init(
required outputDir,
string projectTitle = "Untitled"
string projectTitle = "Untitled",
string theme = "default"
){
super.init( argumentCollection = arguments );

// Override the parent's theme-based paths with CommandBox-specific paths
variables.TEMPLATE_PATH = "/docbox/strategy/CommandBox/resources/templates";
variables.ASSETS_PATH = "/docbox/strategy/api/themes/frames/resources/static";
variables.TEMPLATE_PATH = "/docbox/strategy/CommandBox/themes/#variables.theme#/resources/templates";
variables.ASSETS_PATH = "/docbox/strategy/api/themes/frames/resources/static";
variables.COMMANDBOX_STATIC_PATH = "/docbox/strategy/CommandBox/themes/#variables.theme#/resources/static";

// Theme CSS assets are not laid out consistently across themes.
// The frames theme stores its stylesheet directly under /resources/static
// instead of /resources/static/css, so resolve the source path accordingly.
if ( variables.theme == "frames" ) {
variables.THEME_CSS_PATH = "/docbox/strategy/api/themes/frames/resources/static";
} else {
variables.THEME_CSS_PATH = "/docbox/strategy/api/themes/#variables.theme#/resources/static/css";
}
return this;
}

Expand Down Expand Up @@ -199,13 +209,27 @@ component extends="docbox.strategy.api.HTMLAPIStrategy" {
index++;
}

// copy over the static assets
// 1. Copy frames theme assets (highlighter, jstree, root stylesheet for standalone pages)
directoryCopy(
expandPath( variables.ASSETS_PATH ),
getOutputDir(),
true
);

// 2. Overlay CommandBox-specific JS from its own theme (js/app.js)
directoryCopy(
expandPath( variables.COMMANDBOX_STATIC_PATH & "/js" ),
getOutputDir() & "/js",
true
);

// 3. Overlay shared CSS from the HTMLAPIStrategy's chosen theme (css/stylesheet.css)
directoryCopy(
expandPath( variables.THEME_CSS_PATH ),
getOutputDir() & "/css",
true
);

// write the index template
var args = {
path : getOutputDir() & "/index.html",
Expand Down
23 changes: 0 additions & 23 deletions strategy/CommandBox/resources/templates/inc/common.cfm

This file was deleted.

52 changes: 0 additions & 52 deletions strategy/CommandBox/resources/templates/inc/nav.cfm

This file was deleted.

33 changes: 0 additions & 33 deletions strategy/CommandBox/resources/templates/index.cfm

This file was deleted.

157 changes: 0 additions & 157 deletions strategy/CommandBox/resources/templates/overview-frame.cfm

This file was deleted.

36 changes: 0 additions & 36 deletions strategy/CommandBox/resources/templates/overview-summary.cfm

This file was deleted.

Loading