Skip to content

Add staticHtmlAdapter #66

@helmo

Description

@helmo

Would it be easy to detect a static only site?

The current adapters all look for a pattern to be present in either file name or content, but for this we'd have to check the absence of other things.

E.g. a single html file in a subfolder of a wordpress site should not be detected here.
The presences of index.html is a good indication, but to be useful I'd want be sure no other php files are present (e.g. a contact.php file for some form processing). And the html files should not contain inline <?php ?> shippits.

Or we'd have to also create a GenericPhpAdapter that acts as a fallthrough for when we have *.php files but no cms is detected.

I've been drafting a bit of this in a feature/statichtml branch

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions