Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Simplify includes by grouping headers
  • Loading branch information
glynos committed Jan 4, 2026
commit 7af4fa6f59af7032c718c1f957008495aa4a68c1
5 changes: 2 additions & 3 deletions docs/domain.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,14 @@ Headers

.. code-block:: c++

#include <skyr/domain/punycode.hpp>
#include <skyr/domain/domain.hpp>
#include <skyr/domain.hpp>

Example
-------

.. code-block:: c++

#include <skyr/domain/domain.hpp>
#include <skyr/domain.hpp>
#include <print>

int main() {
Expand Down
4 changes: 2 additions & 2 deletions docs/filesystem.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ Headers

.. code-block:: c++

#include <skyr/filesystem/path.hpp>
#include <skyr/filesystem.hpp>

Example
-------

.. code-block:: c++

#include <skyr/url.hpp>
#include <skyr/filesystem/path.hpp>
#include <skyr/filesystem.hpp>
#include <print>
#include <filesystem>

Expand Down
4 changes: 2 additions & 2 deletions docs/json.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ Headers

.. code-block:: c++

#include <skyr/json/json.hpp>
#include <skyr/json.hpp>

Example
-------

.. code-block:: c++

#include <skyr/json/json.hpp>
#include <skyr/json.hpp>
#include <nlohmann/json.hpp>
#include <print>

Expand Down
6 changes: 2 additions & 4 deletions docs/network.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,15 @@ Headers

.. code-block:: c++

#include <skyr/network/ipv4_address.hpp>
#include <skyr/network/ipv6_address.hpp>
#include <skyr/network.hpp>

Example
-------

.. code-block:: c++

#include <skyr/url.hpp>
#include <skyr/network/ipv4_address.hpp>
#include <skyr/network/ipv6_address.hpp>
#include <skyr/network.hpp>
#include <print>

int main() {
Expand Down
6 changes: 2 additions & 4 deletions docs/percent_encoding.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,14 @@ Headers

.. code-block:: c++

#include <skyr/percent_encoding/percent_encode.hpp>
#include <skyr/percent_encoding/percent_decode.hpp>
#include <skyr/percent_encoding.hpp>

Example
-------

.. code-block:: c++

#include <skyr/percent_encoding/percent_encode.hpp>
#include <skyr/percent_encoding/percent_decode.hpp>
#include <skyr/percent_encoding.hpp>
#include <print>

int main() {
Expand Down
15 changes: 15 additions & 0 deletions include/skyr/domain.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//
// Created by Glyn Matthews on 03/01/2026.
//

#ifndef SKYR_URL_DOMAIN_HPP
#define SKYR_URL_DOMAIN_HPP

#include <skyr/domain/domain.hpp>
#include <skyr/domain/errors.hpp>
#include <skyr/domain/idna.hpp>
#include <skyr/domain/idna_status.hpp>
#include <skyr/domain/idna_tables.hpp>
#include <skyr/domain/punycode.hpp>

#endif // SKYR_URL_DOMAIN_HPP
10 changes: 10 additions & 0 deletions include/skyr/json.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
//
// Created by Glyn Matthews on 03/01/2026.
//

#ifndef SKYR_URL_JSON_HPP
#define SKYR_URL_JSON_HPP

#include <skyr/json/json.hpp>

#endif // SKYR_URL_JSON_HPP
11 changes: 11 additions & 0 deletions include/skyr/network.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
//
// Created by Glyn Matthews on 03/01/2026.
//

#ifndef SKYR_URL_NETWORK_HPP
#define SKYR_URL_NETWORK_HPP

#include <skyr/network/ipv4_address.hpp>
#include <skyr/network/ipv6_address.hpp>

#endif // SKYR_URL_NETWORK_HPP
12 changes: 12 additions & 0 deletions include/skyr/percent_encoding.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//
// Created by Glyn Matthews on 03/01/2026.
//

#ifndef SKYR_URL_PERCENT_ENCODING_HPP
#define SKYR_URL_PERCENT_ENCODING_HPP

#include <skyr/percent_encoding/errors.hpp>
#include <skyr/percent_encoding/percent_decode.hpp>
#include <skyr/percent_encoding/percent_encode.hpp>

#endif // SKYR_URL_PERCENT_ENCODING_HPP
Loading