Commit graph

  • 0e42e80f92 Define aliases for certain types globally instead of in classes, and expand it to other ones, such as std::string. Primarily useful for testing. master Jacob 2024-08-23 17:26:23 +0200
  • 33f793d395 Include algorithm header in docpp.cpp Jacob 2024-08-23 14:21:36 +0200
  • dfc99c1854 This commit makes many breaking changes to the library. They're far too many to list, but all of them are syntactical - no major behavior will be altered with this commit. However, C++17 is now required in order to make use of docpp. It will **no longer build** with a C++11 or C++14 compiler. Thus, please update your projects to make use of C++17, or stick with the last commit. Jacob 2024-08-23 14:11:46 +0200
  • 9172b69a36 Fix linking on macOS. God this operating system is a pain to use sometimes. Jacob 2024-07-22 02:23:45 +0200
  • 9479ff7834 Add methods, allowing you to get elements from a section by reference and make changes to them. Jacob 2024-06-18 04:04:37 +0200
  • c29d29d592 Some minor changes to constructors, fix Tag::Style Jacob 2024-06-17 22:44:09 +0200
  • d9f24ecd53 Remove some more useless methods and overloaded operators. Jacob 2024-06-17 21:16:00 +0200
  • 71ceaa517c Simplify HTML::Properties class Jacob 2024-06-17 21:08:50 +0200
  • 8dc3c47f12 Version bump: 0.1.0 v0.1.0 Jacob 2024-06-08 01:15:03 +0200
  • 5da029f533 Add std::string and Tag index for Section operator[]. Jacob 2024-06-08 01:11:38 +0200
  • d072eb1536 Remove instances of return std::move() Jacob 2024-06-05 21:06:43 +0200
  • d13c2d02fe Implement docpp::version() function, which returns the library version. Jacob 2024-05-30 15:56:38 +0200
  • 9d30189d31 Add Non_Opened to Type enum. It can be used if you want an element that is only closed. Jacob 2024-05-25 21:48:13 +0200
  • 2067aaace3 Remove inline qualifier from namespaces. Jacob 2024-05-23 20:07:12 +0200
  • 8adb6575a1 Add tests for CSS, add some missing methods. Jacob 2024-05-21 20:06:04 +0200
  • f416639461 Oops, wrong file name. Jacob 2024-05-20 01:53:34 +0200
  • 65491ee2ac Add CONTRIBUTIONS.md file, with guidelines for contributors. Jacob 2024-05-20 01:52:01 +0200
  • 14cd8c4122 Remove/replace some "C with classes" junk. The C++ core guidelines state that you must not use ALL_CAPS for enum members. enum class is now used as well, to further reinforce the idea that this is a C++ library. While neither of these changes are necessary, it leads to a better and more intuitive API design. Jacob 2024-05-20 01:32:49 +0200
  • 223f81dc90 Fix dist_release function call in Make script. v0.0.1 Jacob 2024-05-17 23:54:24 +0200
  • 29dea51b6b Changed my mind, disable Debug testing. Jacob 2024-05-17 23:07:47 +0200
  • 95ac0d5057 Don't include .git* in the release tarballs. Jacob 2024-05-17 23:05:41 +0200
  • 1da204e096 Cleanup cmake-multi-platform.yml Jacob 2024-05-17 23:02:35 +0200
  • e178332f7a Add a comment for each enum member. Jacob 2024-05-17 15:06:16 +0200
  • 3c7f1ef085 Change the description of the project to be more generalized. SGML-like syntax should be supported. Jacob 2024-05-17 14:47:09 +0200
  • a5bbb64250 Add speedie-page example. Jacob 2024-05-17 14:14:24 +0200
  • 65dd704aff Implement ELEMENT_EMPTY_NO_FORMAT, which is an empty tag without formatting. Jacob 2024-05-17 13:52:16 +0200
  • 524058e779 Fix: Some template functions not having a default value. Jacob 2024-05-17 13:30:47 +0200
  • e49535179e Move template functions to header. Rather silly mistake. Jacob 2024-05-17 13:02:26 +0200
  • aabb1f79ea Add more test cases, fix a bug where tr is not in the map. Jacob 2024-05-17 12:23:01 +0200
  • 8d3e23ac5a Use TYPE_TEXT_TAB instead for ELEMENT_EMPTY Jacob 2024-05-17 08:41:14 +0200
  • df19d81555 Change properties for some tags. Jacob 2024-05-17 08:20:02 +0200
  • 6fa9373f25 Remove const qualifier. Jacob 2024-05-16 18:00:05 +0200
  • 3449a39154 Some minor cleanup. I'm basically nitpicking at this point. Jacob 2024-05-16 10:59:59 +0200
  • 3e7a63e282 Move another constructor to the header. Jacob 2024-05-16 10:51:42 +0200
  • b206aa3ea7 Optimize template functions a little bit. Jacob 2024-05-16 08:20:57 +0200
  • d6db5690b3 Optimize constructors by initializing variables rather than overriding the values using the appropriate set() methods. Jacob 2024-05-16 08:09:27 +0200
  • 6d7cb9af86 Add missing tag, resolve_tag now returns the proper closing tag as well, for convenience. Jacob 2024-05-15 23:33:17 +0200
  • 247b2cbf37 Add <link> tag, forgot about this one. Jacob 2024-05-15 22:48:33 +0200
  • c4034adcea Replace case statement with a static const std::unordered_map. Jacob 2024-05-15 17:36:47 +0200
  • fa107fcb64 Name the enums, and use them in the function declarations. Jacob 2024-05-15 10:57:47 +0200
  • d7107de41b Add HTML tag enum Jacob 2024-05-15 10:21:39 +0200
  • 1458273912 Simplify testing. No need to use CMake testing module for this. Jacob 2024-05-14 20:33:05 +0200
  • 93b5a57c35 Change the shell, for better compatibility. Jacob 2024-05-14 19:21:13 +0200
  • f139028deb I don't know if it's so small anymore. Jacob 2024-05-14 15:46:43 +0200
  • 8a3d21ea31 Add Gentoo ebuild, along with code necessary to generate one. Also, clean up the CMakeLists.txt file, allowing it to be more cross platform. Jacob 2024-05-14 15:39:50 +0200
  • ceda875213 Make use of the template functions in the test cases. Jacob 2024-05-14 10:04:32 +0200
  • f30f1431fd Add Arch packaging. Jacob 2024-05-13 15:09:20 +0200
  • ee0720cd67 Change case for many methods to closer align with the standard library. Jacob 2024-05-13 12:00:47 +0200
  • e2568dd62d Add a docpp_make script, which creates a tarball release. Jacob 2024-05-13 02:46:21 +0200
  • b38a427047 Remove compile_commands.json symlink. Jacob 2024-05-13 02:13:53 +0200
  • b44a934d20 Add docpp.pc file, allowing pkg-config to find docpp. Jacob 2024-05-13 02:00:40 +0200
  • 8ba0aff55c Revise examples a little bit. Jacob 2024-05-13 00:57:27 +0200
  • 27ff72f2a5 Add some more templates for methods that return std::string. Jacob 2024-05-13 00:45:04 +0200
  • 8caa3d92eb Add template get() methods. Also, remove instances of the auto type. Jacob 2024-05-12 23:43:44 +0200
  • 7fa001bcde Remove a method I accidentally declared. Jacob 2024-05-12 23:04:04 +0200
  • 2f9c24e8ab Add Doxygen file, remove old aliases. Jacob 2024-05-12 21:56:03 +0200
  • 35a15651ca Rename the different classes. I felt it was too verbose. Jacob 2024-05-12 20:18:06 +0200
  • 8f3ba89445 Implement iterators for several classes and rename HTMLElementProperties to HTMLProperties. Jacob 2024-05-12 20:05:23 +0200
  • 17d8bf6b4b Add front() and back() methods for the various classes. Jacob 2024-05-07 22:58:53 +0200
  • 43daa77f6d Implement support for plain text elements and sections without a tag. Also, add example replica of biteme.lol. Jacob 2024-05-07 21:21:58 +0200
  • 21ddd1d82c Change the behavior of FORMATTING_PRETTY to include tabs. FORMATTING_NEWLINE can be used if you want to preserve the old behavior. Jacob 2024-05-07 17:26:11 +0200
  • 804309d323 Implement operator overloading for several classes. Jacob 2024-05-07 00:08:54 +0200
  • aca33e80d5 Implement at() methods for several classes. Jacob 2024-05-06 14:18:01 +0200
  • cddf11235f Add position functions for HTMLElementProperties. Jacob 2024-05-06 13:19:16 +0200
  • 292b6018d6 Add position functions for CSSElement. Jacob 2024-05-06 11:47:24 +0200
  • 298a3c96b6 Implement push_front() method for CSSElement, implement find() method that takes an std::string for CSSStylesheet. Jacob 2024-05-06 11:06:45 +0200
  • f9bf0bbfd4 Add new HTMLSection::find() method that takes an std::string parameter containing a deserialized section or element, and returns the position of an identical section or element, or npos. Jacob 2024-05-06 02:45:15 +0200
  • 8f1f175138 Change the behavior of find() functions. They no longer throw an exception, but rather return npos (-1). Jacob 2024-05-06 02:28:23 +0200
  • 8a8313a01c Minor change to the Code of Conduct section. Jacob 2024-05-06 01:23:23 +0200
  • 9c990fe9eb Lower C++ standard to C++11, because currently we're not using any newer features. Jacob 2024-05-06 01:00:54 +0200
  • 70f9ed770b Add CI badge. Jacob 2024-05-06 00:31:29 +0200
  • 0b0c89a55b Maybe changing the way we set the standard will fix it? Jacob 2024-05-06 00:26:23 +0200
  • e950a54477 clang++ doesn't appear to work for whatever reason, try GCC. Jacob 2024-05-06 00:23:42 +0200
  • ded3f5ac69 Alright, hopefully fix it. Jacob 2024-05-06 00:11:39 +0200
  • 202353bfea Fix some mistakes causing GCC runners to run. Jacob 2024-05-06 00:07:18 +0200
  • d95fa3ab8b Add macOS runner Jacob 2024-05-06 00:06:06 +0200
  • 8689ada650 Fix some mistakes in the CMakeLists file, disable tests for GitHub Actions Jacob 2024-05-06 00:00:11 +0200
  • 7ffce8b66b Add GitHub Actions file. Jacob 2024-05-05 23:51:02 +0200
  • c36d834d4f Fix typo in the README. Jacob 2024-05-05 23:45:28 +0200
  • 0641a95770 Initial commit Jacob 2024-05-05 23:31:42 +0200