Skip to content

Commit

Permalink
- fix html build with cache folder
Browse files Browse the repository at this point in the history
  • Loading branch information
christoph-hart committed Nov 3, 2024
1 parent f8d1ca9 commit 776880d
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion currentGitHash.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
821e22b4fb730e202a9440edea42bc3cd483d60b
f8d1ca94de05eef06a618bf0592d32c267972811
2 changes: 2 additions & 0 deletions hi_backend/backend/BackendProcessor.h
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,8 @@ class BackendProcessor: public PluginParameterAudioProcessor,

ExampleAssetManager::Ptr assetManager;

File customDocCacheFolder;

private:

bool isSnippet = false;
Expand Down
3 changes: 3 additions & 0 deletions hi_backend/backend/PostDocGenerators.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ void BackendProcessor::registerContentProcessor(MarkdownContentProcessor* proces

juce::File BackendProcessor::getCachedDocFolder() const
{
if(customDocCacheFolder.isDirectory())
return customDocCacheFolder;

return AutogeneratedDocHelpers::getCachedDocFolder();
}

Expand Down
2 changes: 1 addition & 1 deletion hi_backend/backend/currentGit.h
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define PREVIOUS_HISE_COMMIT "821e22b4fb730e202a9440edea42bc3cd483d60b"
#define PREVIOUS_HISE_COMMIT "f8d1ca94de05eef06a618bf0592d32c267972811"
8 changes: 6 additions & 2 deletions projects/standalone/Source/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -516,8 +516,12 @@ class CommandLineActions
crawler.createImageTree();

print("Writing data files");

crawler.createDataFiles(docRoot.getChildFile("cached"), true);

auto cacheFolder = docRoot.getChildFile("cached");

crawler.createDataFiles(cacheFolder, true);

bp->customDocCacheFolder = cacheFolder;

auto htmlDir = getFilePathArgument(args, {}, "-h:");

Expand Down

0 comments on commit 776880d

Please sign in to comment.