How to change the presentation style of Sandcastle without changing the default installation files

My project uses Sandcastle and Sandcastle Help File Builder to create documentation.

We use a custom version of script_manifold.js that saves user preferences on different pages (the default version resets language preferences from each page).

The script is currently located in the Sandcastle \ presentation \ VS2005 \ scripts folder.

Is there a way to override this script with a custom version without having to mess with installing Sandcastle? That is, can I have a file that is checked in the source code along with my source code, and somehow use this file used by SHFB instead of the standard Sandcastle?

+6
source share
1 answer

Nothing, I found the answer!

In the SHFB project explorer window, you can simply create a folder with the same name as the presentation style style that you want to override. This works with any content content such as HTML, CSS or JS files. Therefore, in my situation, I had to redefine the script_manifold.js file, which is located in the Scripts folder of the VS2005 presentation style.

So I needed to create a folder called Scripts in my SHFB project, and then put this script_manifold.js folder into it.

Everything works perfectly. Excellent!

+6
source

Source: https://habr.com/ru/post/887773/


All Articles