1. Configuration of ACF-Docu

In this guide, we will walk you through configuring ACF-Docu to suit your specific needs.

Table of contents

  1. Configuration of ACF-Docu
    1. The Preferences Button
    2. Folder Preferences
    3. Header Preferences
    4. Footer Preferences
    5. Top Navigation Preferences
    6. Left Navigation Preferences
    7. Markdown Template
    8. Other Preferences
    9. ACF Function Preferences
    10. Books Preferences
    11. Categories Preferences

1.1. The Preferences Button

When you start the application, you will find the "Preferences" button in the interface.

Preferences Button

Clicking on this button takes you to a screen with various tabs:

1.2. Folder Preferences

In the "Folder Prefs" tab, you can select folders for your Markdown documents and the "site" folder for HTML documents. The ACF-Plugin license is usually preconfigured.

Folder Preferences

1.3. Header Preferences

The "Header Prefs" section allows you to add text to the HTML header, typically for linking JavaScript or CSS files.

Header Preferences

1.4. Footer Preferences

Use the "Footer Preferences" tab to define content that appears at the bottom of your documents.

Footer Preferences

1.5. Top Navigation Preferences

The "Top Navigation" preferences include a placeholder for generated navigation elements. You can add custom content such as buttons and links.

Top Navigation Preferences

1.6. Left Navigation Preferences

In the "Left Navigation" preferences, you can specify HTML content for the top and bottom of the left navigation menu.

Left Navigation Preferences

1.7. Markdown Template

The "MD-Template" tab allows you to create a template for new documents. This template is inserted when you create a new file.

Markdown Template

1.8. Other Preferences

When we drag images from any place, to example the desktop - we get a path into the MarkDown document. This must be altered to have ![]( as the prefix, and ) like below. The Markdown editor Light-Paper does this automatically, but it´s not free.

![](/Users/ole/Desktop/Folder-Structure.png)

The File is copied into the images folder for the html_root_path. To make the Markdown still be able to show the document in its new location, it is altered to:

![](../../ html_root_path/images/Folder-Structure.png)

This new path needs to be stripped for this ../../ html_root_path/ in order for the HTML file to work as expected inside this html_root_path, so we only have images/Folder-Structure.png as the image source for the image tags in the html. Dependent of your naming of the html_root_path, and the placement of your MarkDown Doc directory, we need to adjust accordingly. The best way is to run the Preview on the document, and then see how the image path is updated. Then that comes before images in the path that should be removed.

Other Preferences

1.9. ACF Function Preferences

The "ACF" tab lets you customize the ACF functions, which play a crucial role in document production. Those functions are called when you ask to preview a document (producing the HTML file). It is possible to tweak those functions to alter the result of the document production. A source file of those ACF functions comes with the application and can be loaded back if some edits do not go the way you want. You can always ask for advice here if you need to accomplish something special. Look at the instruction videos and the ACF reference manual to get started on this journey.

ACF Function Preferences

1.10. Books Preferences

You should always have at least one book. Use the "Books" preferences to define book titles and start HTML pages. Additional books can be added.

Books Preferences

1.11. Categories Preferences

In the "Categories" preferences, you can manage a list of categories available in the drop-down menu in your main document. The list can contain more categories than you actually use and is shared amongst the books. The sort number is to order the categories in the menu.

Categories Preferences