Solving It On the Front-end

Requirements

As an input we have a website with some PDFs (documentation) for various modules and versions of some software in German and in English. We actually don't know:

As I'll be the one using these docs, I thought of an HTML page with an integrated search where there's a table with the following fields:

That sounds reasonable, right? Let's get into it then.

The tools

The idea is to export all the information into Excel and do some matching there, then identify the duplicates, delete them, and finally create the resulting page.

The actual process involved choosing the tools along the way, but at the end I've got this:

The sequence

I had to do some back-and-forth movements, so it took me about a day to make 300 lines from 600 files, but for the future I would do something like this:

  1. Download all the files
  2. Create a CSV with filename + folder and name (title) columns
  3. Match the files (duplicates, newer version, EN-DE) in Excel
  4. Create in Excel the list of files to remove and save to txt
  5. Remove the files with xargs + txt
  6. Save the table from Excel to CSV
  7. Convert CSV to list of lists

It works quite well, and combined with fast Chrome rendering and an ability to open PDFs directly in the browser, it looks like a solid solution.

Conclusions

I'm not a programmer, so I asked an AI chatbot to do the heavy lifting with the programming. You still need to understand the Python or JS code it produces, and bash scripts are particularly dangerous. Looking back, I'd just move slower and more systematically to eliminate manual work and associated mistakes as much as possible. Well, you can't know everything in advance. I thought it was a 2-hour task, but I'm still happy with the result every time I use it.

The issue with the static HTML page is that it can work well only in a few cases:

For example, to integrate it into SharePoint you would need to create a component and install this component. Which is kind of sad, because I can't see how a static page with some JS can be dangerous.