Skip to content

Commit a48dbfe

Browse files
publish recipes on lucee docs (#1460)
* publish recipes on lucee docs * Update recipes index and README * linting * Update logging.md * Update recipes index and README --------- Co-authored-by: Lucee Docs GitHub Action <[email protected]>
1 parent 136ed71 commit a48dbfe

File tree

35 files changed

+80
-1595
lines changed

35 files changed

+80
-1595
lines changed

api/data/DocTree.cfc

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,10 +311,17 @@ component accessors=true {
311311
variables.tree.append(guide);
312312
}
313313
break;
314-
/*
315314
case "recipes":
315+
var recipeTree = folder.getChildren();
316+
for (var recipe in recipeTree){
317+
if (recipe.getForceSortOrder() gt 0){
318+
recipe.setSortOrder(recipe.getForceSortOrder());
319+
} else {
320+
recipe.setSortOrder(5 + NumberFormat(recipe.getSortOrder()/100,"0.00"));
321+
}
322+
variables.tree.append(recipe);
323+
}
316324
break;
317-
*/
318325
}
319326
}
320327
_sortChildren( variables.tree );

api/data/PageCache.cfc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ component accessors=true {
8383
var timestamp = CreateDate(2000,1,1);//
8484
for( var file in local.files){
8585
file = _removeRootDirectoryFromFilePath(file);
86-
if ( ListFirst( file, "/" ) eq "recipes") continue;
86+
// if ( ListFirst( file, "/" ) eq "recipes") continue;
8787
var row = QueryAddRow(local.q_files);
8888
querySetCell(local.q_files, "name", ListLast(file, "/") , row);
8989
querySetCell(local.q_files, "fullpath", file , row);

api/data/PageReader.cfc

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,17 @@ component {
5050
if (page.getPageType() eq "README"){
5151
page.setPath( page.getPath() );
5252
page.setPageType( "listing" );
53+
page.setListingStyle( "flat" );
5354
page.setVisible( true );
54-
page.setReference( false );
55-
page.setBody( "Recipes" );
55+
page.setReference( true );
56+
page.setBody( "Detailed Recipes showing you how to take advantage of the wide range of features in Lucee" );
57+
page.setMenuTitle( "Recipes" );
5658
page.setTitle( "Lucee Recipes" );
57-
page.setDescription( "Lucee Recipes" );
59+
page.setDescription( "Detailed Recipes showing you how to take advantage of the wide range of features in Lucee" );
60+
page.setForceSortOrder( 5.5 );
61+
page.setSortOrder( 4.5 );
62+
page.setSlug("recipes");
63+
page.setId("recipes");
5864
} else {
5965
page.setPath( page.getPath() & "/" & replace( page.getPageType(), ".md", "" ) );
6066
page.setPageType( "page" );
@@ -149,7 +155,6 @@ component {
149155
} else if ( len( trim( arguments.pageContent ) ) ){
150156
parsed = _splitCommentStructAndBody( arguments.pageContent, arguments.filePath );
151157
}
152-
153158
return parsed;
154159
}
155160

@@ -194,10 +199,9 @@ component {
194199
var body = mid( str, endComment + 3 );
195200
if ( len( trim( body ) ) eq 0 )
196201
throw "empty content after metadata [#arguments.filePath#]";
197-
return {
198-
yaml = deserializeJson( meta )
199-
, body = body
200-
}
202+
meta = deserializeJson( meta );
203+
meta.body = body;
204+
return meta;
201205
}
202206

203207
private string function _convertToUnixLineEnding( required string content ){

builders/html/templates/aToZIndex.cfm

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
<cfoutput>
1010
#getEditLink(path=local.pg.getSourceFile(), edit=args.edit)#
1111
#_markdownToHtml( local.pg.getBody() )#
12-
13-
<cfif ArrayLen(local.pg.getChildren()) lt 50>
12+
<cfif ArrayLen(local.pg.getChildren()) lt 50 or local.pg.getListingStyle() eq "flat">
1413
<div class="tile-wrap">
1514
<cfloop array="#local.pg.getChildren()#" index="local.i" item="local.child">
1615
<span class="tile">

docs/00.home/homepage.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,13 @@ Our documentation is an open source and community driven effort. It is also a co
1616

1717
To find out more about getting involved as a developer with Lucee, checkout our [Git Repo](https://github.com/lucee/Lucee/blob/6.0/CONTRIBUTING.md)
1818

19+
## Recipes
20+
21+
**New!** We have added a whole series of detailed [[Recipes]] showing you how to take advantage of the wide range of features in Lucee.
22+
1923
## Lucee 6.2
2024

21-
Lucee 6.2 is our upcoming next major release, including enhanced Java and Maven integration, with even better runtime performance.
25+
Lucee 6.2 is our upcoming next major release, currently at the Release Candidate stage, including enhanced Java and Maven integration, with even better runtime performance, up to 50% faster than Lucee 5.4.
2226

2327
## Lucee 6.1
2428

docs/04.guides/04.cookbooks/04.basic-date/page.md

Lines changed: 0 additions & 44 deletions
This file was deleted.

docs/04.guides/04.cookbooks/11.configuration-administrator-cfc/page.md

Lines changed: 0 additions & 25 deletions
This file was deleted.

docs/04.guides/04.cookbooks/12.filesystem-mapping/01.filesystem-mapping-define-mapping/page.md

Lines changed: 0 additions & 135 deletions
This file was deleted.

docs/04.guides/04.cookbooks/12.filesystem-mapping/page.md

Lines changed: 0 additions & 19 deletions
This file was deleted.

docs/04.guides/04.cookbooks/14.check-for-changes/page.md

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)