Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds SiteMap, built from pages/resources, exportable to xml #61

Merged
merged 6 commits into from
May 3, 2024

Conversation

Jerboa-app
Copy link
Contributor

@Jerboa-app Jerboa-app commented Apr 30, 2024

Closes #54
Closes #63
Closes #64

Copy link

Looks like you increased coverage by 0.9 %, fantastic!
Here is the full report breakdown

Total coverage 24.77 % (+0.9 % against main)
_________________________________
src/config.rs                     | 0.0   % 0 / 14
src/filesystem/mod.rs             | 0.0   % 0 / 0
src/main.rs                       | 0.0   % 0 / 15
src/server/api/mod.rs             | 0.0   % 0 / 0
src/server/api/stats.rs           | 0.0   % 0 / 81
src/server/http.rs                | 0.0   % 0 / 20
src/server/https.rs               | 0.0   % 0 / 85
src/server/mod.rs                 | 0.0   % 0 / 0
src/web/discord/mod.rs            | 0.0   % 0 / 0
src/web/discord/request/mod.rs    | 0.0   % 0 / 0
src/web/discord/request/model.rs  | 0.0   % 0 / 3
src/web/discord/request/post.rs   | 0.0   % 0 / 10
src/web/mod.rs                    | 0.0   % 0 / 30
src/web/response/mod.rs           | 0.0   % 0 / 0
src/web/response/util.rs          | 0.0   % 0 / 16
src/web/throttle.rs               | 0.0   % 0 / 48
src/server/sitemap.rs             | 4.23  % 3 / 71
src/web/stats.rs                  | 4.45  % 11 / 247
src/content/resources/resource.rs | 13.04 % 3 / 23
src/lib.rs                        | 31.58 % 6 / 19
src/content/pages/page.rs         | 35.14 % 13 / 37
src/util.rs                       | 58.93 % 33 / 56
src/filesystem/folder.rs          | 59.26 % 32 / 54
src/filesystem/file.rs            | 72.73 % 24 / 33
src/content/mod.rs                | 75.0  % 33 / 44
src/content/resources/mod.rs      | 75.0  % 15 / 20
src/content/pages/mod.rs          | 88.89 % 16 / 18
src/content/filter.rs             | 100.0 % 3 / 3
src/content/mime_type.rs          | 100.0 % 25 / 25
_________________________________

src/server/sitemap.rs Outdated Show resolved Hide resolved
tests/test_sitemap.rs Outdated Show resolved Hide resolved
SiteMap will contain the build logic from a local path.
It is also pushable, exportable to a sitemap xml file, and
convertable into a Router

Replace pages and resources with just Content
Copy link

github-actions bot commented May 2, 2024

Looks like you increased coverage by 0.51 %, fantastic!
Here is the full report breakdown

Total coverage 24.38 % (+0.51 % against main)
________________________________
src/config.rs                    | 0.0   % 0 / 14
src/filesystem/mod.rs            | 0.0   % 0 / 0
src/main.rs                      | 0.0   % 0 / 15
src/server/api/mod.rs            | 0.0   % 0 / 0
src/server/api/stats.rs          | 0.0   % 0 / 81
src/server/http.rs               | 0.0   % 0 / 20
src/server/mod.rs                | 0.0   % 0 / 0
src/web/discord/mod.rs           | 0.0   % 0 / 0
src/web/discord/request/mod.rs   | 0.0   % 0 / 0
src/web/discord/request/model.rs | 0.0   % 0 / 3
src/web/discord/request/post.rs  | 0.0   % 0 / 10
src/web/mod.rs                   | 0.0   % 0 / 30
src/web/response/mod.rs          | 0.0   % 0 / 0
src/web/response/util.rs         | 0.0   % 0 / 16
src/web/throttle.rs              | 0.0   % 0 / 48
src/web/stats.rs                 | 4.45  % 11 / 247
src/server/https.rs              | 6.35  % 4 / 63
src/lib.rs                       | 31.58 % 6 / 19
src/util.rs                      | 60.66 % 37 / 61
src/filesystem/folder.rs         | 61.11 % 33 / 54
src/content/mod.rs               | 73.03 % 65 / 89
src/content/sitemap.rs           | 84.44 % 114 / 135
src/filesystem/file.rs           | 87.88 % 29 / 33
src/content/filter.rs            | 100.0 % 3 / 3
src/content/mime_type.rs         | 100.0 % 31 / 31
________________________________

Copy link

github-actions bot commented May 3, 2024

Looks like you increased coverage by 0.51 %, fantastic!
Here is the full report breakdown

Total coverage 24.38 % (+0.51 % against main)
________________________________
src/config.rs                    | 0.0   % 0 / 14
src/filesystem/mod.rs            | 0.0   % 0 / 0
src/main.rs                      | 0.0   % 0 / 15
src/server/api/mod.rs            | 0.0   % 0 / 0
src/server/api/stats.rs          | 0.0   % 0 / 81
src/server/http.rs               | 0.0   % 0 / 20
src/server/mod.rs                | 0.0   % 0 / 0
src/web/discord/mod.rs           | 0.0   % 0 / 0
src/web/discord/request/mod.rs   | 0.0   % 0 / 0
src/web/discord/request/model.rs | 0.0   % 0 / 3
src/web/discord/request/post.rs  | 0.0   % 0 / 10
src/web/mod.rs                   | 0.0   % 0 / 30
src/web/response/mod.rs          | 0.0   % 0 / 0
src/web/response/util.rs         | 0.0   % 0 / 16
src/web/throttle.rs              | 0.0   % 0 / 48
src/web/stats.rs                 | 4.45  % 11 / 247
src/server/https.rs              | 6.35  % 4 / 63
src/lib.rs                       | 31.58 % 6 / 19
src/util.rs                      | 60.66 % 37 / 61
src/filesystem/folder.rs         | 61.11 % 33 / 54
src/content/mod.rs               | 73.03 % 65 / 89
src/content/sitemap.rs           | 84.56 % 115 / 136
src/filesystem/file.rs           | 87.88 % 29 / 33
src/content/filter.rs            | 100.0 % 3 / 3
src/content/mime_type.rs         | 100.0 % 31 / 31
________________________________

Copy link

github-actions bot commented May 3, 2024

Looks like you increased coverage by 0.51 %, fantastic!
Here is the full report breakdown

Total coverage 24.38 % (+0.51 % against main)
________________________________
src/config.rs                    | 0.0   % 0 / 14
src/filesystem/mod.rs            | 0.0   % 0 / 0
src/main.rs                      | 0.0   % 0 / 15
src/server/api/mod.rs            | 0.0   % 0 / 0
src/server/api/stats.rs          | 0.0   % 0 / 81
src/server/http.rs               | 0.0   % 0 / 20
src/server/mod.rs                | 0.0   % 0 / 0
src/web/discord/mod.rs           | 0.0   % 0 / 0
src/web/discord/request/mod.rs   | 0.0   % 0 / 0
src/web/discord/request/model.rs | 0.0   % 0 / 3
src/web/discord/request/post.rs  | 0.0   % 0 / 10
src/web/mod.rs                   | 0.0   % 0 / 30
src/web/response/mod.rs          | 0.0   % 0 / 0
src/web/response/util.rs         | 0.0   % 0 / 16
src/web/throttle.rs              | 0.0   % 0 / 48
src/web/stats.rs                 | 4.45  % 11 / 247
src/server/https.rs              | 6.35  % 4 / 63
src/lib.rs                       | 31.58 % 6 / 19
src/util.rs                      | 60.66 % 37 / 61
src/filesystem/folder.rs         | 61.11 % 33 / 54
src/content/mod.rs               | 73.03 % 65 / 89
src/content/sitemap.rs           | 84.56 % 115 / 136
src/filesystem/file.rs           | 87.88 % 29 / 33
src/content/filter.rs            | 100.0 % 3 / 3
src/content/mime_type.rs         | 100.0 % 31 / 31
________________________________

@Jerboa-app Jerboa-app merged commit acb8262 into main May 3, 2024
6 checks passed
@Jerboa-app Jerboa-app deleted the add_sitemap branch May 11, 2024 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mime_type is video or is image, etc. Deprecate Page and Resource, use Content only Sitemap
1 participant