{"id":19378174,"url":"https://github.com/almarklein/faq-div","last_synced_at":"2025-02-24T16:18:50.324Z","repository":{"id":72713734,"uuid":"290317175","full_name":"almarklein/faq-div","owner":"almarklein","description":"Turn any div into a FAQ","archived":false,"fork":false,"pushed_at":"2023-10-07T21:37:26.000Z","size":1124,"stargazers_count":6,"open_issues_count":5,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-07T05:28:37.373Z","etag":null,"topics":["faq","faqs","knowledge-base","websites"],"latest_commit_sha":null,"homepage":"https://faq-div.com","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/almarklein.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-25T20:31:18.000Z","updated_at":"2023-10-07T19:03:14.000Z","dependencies_parsed_at":"2024-11-10T09:05:12.591Z","dependency_job_id":"68d00f85-7fc8-4a2b-b5cd-3a7a42c06dae","html_url":"https://github.com/almarklein/faq-div","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almarklein%2Ffaq-div","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almarklein%2Ffaq-div/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almarklein%2Ffaq-div/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almarklein%2Ffaq-div/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/almarklein","download_url":"https://codeload.github.com/almarklein/faq-div/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240511295,"owners_count":19813237,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["faq","faqs","knowledge-base","websites"],"created_at":"2024-11-10T09:05:04.878Z","updated_at":"2025-02-24T16:18:50.302Z","avatar_url":"https://github.com/almarklein.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![CI](https://github.com/almarklein/faq-div/workflows/CI/badge.svg)](https://github.com/almarklein/faq-div/actions)\n\n![preview](website/img/faqdiv-wide.png)\n\n# FAQ-div - turn any div into a FAQ\n\n\nFAQ-div is a small JS library that makes it very easy to create effective FAQ pages.\n\n\n## How?\n\nWrite questions in `\u003ch3\u003e` elements, with the answers below.\n```html\n\u003ch3\u003e Question 1\u003c/h3\u003e\n\nAnswer ...\n\n\u003ch3\u003e Question 2\u003c/h3\u003e\n\nAnswer ...\n\netc.\n\n```\n\nAdd two lines of code. One to load the faq-div lib, and one to mark the start of your FAQ:\n```html\n\u003cscript src='faq-div.min.js'\u003e\u003c/script\u003e\n\n...\n\n\u003cdiv class='faq-start'\u003e\u003c/div\u003e\n\n\u003ch3\u003e Question 1\u003c/h3\u003e\n...\n```\n\nBam! A beautiful FAQ with awesome features! See https://faq-div.com for more info and examples.\n\n\n## License\n\n### Commercial license\n\nIf you want to use FAQ-div to develop non open sourced sites, themes, projects, and applications, the Commercial license is the appropriate license. With this option, your source code is kept proprietary. Which means, you won't have to change your whole application source code to an open source license. You can buy a license [here](https://faq-div.com).\n\n\n### Open source license\n\nIf you are creating an open source application under a license compatible with the GNU GPL license v3, you may use FAQ-div under the terms of the GPLv3.\n\nThe credit comments in the JavaScript and CSS files should be kept intact (even after combination or minification).\n\n\n### Developers\n\nFAQ-div is implemented in vanilla JS. The tooling is mostly in Python\n(because I'm primarily a Python dev). Tips:\n\n* `python build.py`: generate `dist/faq-div.min.js`.\n* `python build.py develop`: generate `dist/faq-div.min.js` continuously.\n* `python serve.py`: build, then start a webserver for website and examples.\n* `black .`: autoformat the Python code.\n* `flake8 . --max-line-length=89`: linting the Python code.\n* I use VS Code plugins to lint the JavaScript and CSS.\n* CI lints both Python and JS.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falmarklein%2Ffaq-div","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falmarklein%2Ffaq-div","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falmarklein%2Ffaq-div/lists"}