Html Assistant Documentation

Unfortunately I did not have the time to thorougly test it, so before you jump in and start using it on 100 page long websites, at least make a backup of your files.

If you would like to run Html Assistant in one click, make sure you edit your path and icon inside Html Assitant.desktop file (use absolute path)

ex.
Path=/path/to/your/location/
Icon=/path/to/your/location/icons/HAIcon.png

  1. Installation
  2. Usage
  3. Menu bar
  4. Contact
  5. Roadmap

1. Installation

Most of the guides, tend to forget about the newbies, that do not know what to do with source files obtained from Github, so I will try to describe everything in detail.

First you need to download files, click on the button below to get the latest release of Html Assistant. After you extracted the files you should have six items in the folder:

Download files See on Github

Next follow the instruction below (1.1 or 1.2), according to your operating system.

In case you are wondering what each of the files does:
  • Html-Assistant.py - contains all python code
  • assistant.glade - defines user interface
  • style.css - changes style of the user interface
  • config.json - it's like a database for Html Assistant. It contains templates, latest used project path, etc...
  • html-assistant.desktop - one click launcher for Html Assistant. If you specified Path and Icon correctly, it should run Html Assitant in with one click.
  • icons - folder which contains icons for Html Assistant

1.1 Linux:

Html Assistant was built with Python3 and Gtk+ 3. If you are using Linux, you can consider yourself lucky, since they are installed by default, so you can skip to section 2.

I am using Ubuntu, if you are using some other distribution, you might have to install python3 and Gtk+ 3 manually.

1.2 Mac & Windows:

In order to use Html Assistant you need Python3 and Gtk+ 3 installed. Check their websites for installation guides.

Please note, I am not using Mac or Windows OS, so there is a great chance that the Html Assistant will not work, because of their way of dealing with file paths.

2. Usage

html assistant screenshot
  1. First we Run Html Assistant, I prefer to run it via command line. I cd to the right directory (where Html Assistant is located) and type python3 main.py.
  2. Click on the Open Project button [number 1 on picture] to select folder which contains .html files.
  3. Path is automatically added to the textbox [number 2 on picture]. Files from the specified project (folder) are automatically added into list view [number 3 on picture].
  4. Specify the element you would like to replace [number 4 on picture]. For example you would like to replace the following div:
    
    <div class="navigation">
    <ul>
    <li> First link </li>
    <li> Second link </li>
    </ul>
    </div>
    so we type in the text field [number 4 on picture] <div class="navigation
  5. Write or paste new navigation in the editor window [number 5 on picture] for example:
    
    <div class="new_navigation">
    <ul>
    <li> Home </li>
    <li> About </li>
    <li> Contact </li>
    </ul>
    </div>

    Make sure that you write whole navigation not just the inside part (ul & li). Html Assistant rewrites the entire part of the page specified in [number 4 on picture] to the closing tag.
  6. When you are done with writing your new navigation press Update Navigation button [number 6 on picture].
  7. You can see which files changed in console at the bottom of the Html Assistant window [number 7 on picture].
  8. That's it. All files from the project folder are now updated with the new navigation.


Keep in mind the navigation is not the only part of the html pages, that you can replace with this software. You can also use it to replace footer, div with certain class or id, certain link, etc...

4. Contact

If you find any bug, please do not hesitate to create an issue on Github and I will try to fix it.

I hope you have as much fun using this software, as much as I had writing it. If you would like to share your story how this program helped you when creating website, feel free to contact me via my Website

5. Roadmap

If you have the time and will to implement any of the desired features feel free to create pull request and we will discuss it there!