Content-Length: 351948 | pFad | https://github.com/postgresml/postgresml/pull/1052

54 gitbook assets by montanalow · Pull Request #1052 · postgresml/postgresml · GitHub
Skip to content

gitbook assets #1052

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

Merged
merged 2 commits into from
Oct 11, 2023
Merged

gitbook assets #1052

merged 2 commits into from
Oct 11, 2023

Conversation

montanalow
Copy link
Contributor

TODO

  • configuration to deploy docs

render(cluster, &path, guides, "Guides", &Path::new("docs")).await
use rocket::fs::NamedFile;

#[get("/docs/guides/.gitbook/assets/<path>", rank = 10)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't use the fileserver because we need the path to not be exact, but rather the relative gitbook path.

@@ -48,7 +48,7 @@
</li>

<li class="nav-item d-flex align-items-center">
<a class="nav-link p-lg-0" href="/docs/guides/setup/quick_start_with_docker">Docs</a>
<a class="nav-link p-lg-0" href="/docs/guides/README">Docs</a>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not very SEO friendly imo

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, but we can't control this lever in gitbook... and then again... it is kinda devvy.

.header_counter
.fetch_add(1, std::sync::atomic::Ordering::SeqCst);
let id = format!("header-{}", id);
let id = meta.content.to_case(convert_case::Case::Kebab);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not unique enough, we have duplicate headers in blogs and docs.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should dedup them. URLS are part of the UX, and we're also losing control of this to gitbook.

@montanalow montanalow marked this pull request as ready for review October 5, 2023 15:59
@levkk
Copy link
Contributor

levkk commented Oct 5, 2023

Do you think we should place these into /docs2 and hide them from Google until we finish our work on them? To me the current docs feel more usable than these ones.

We should at least go through these to validate that all the basics are there and we haven't removed important information.

@montanalow montanalow merged commit 2ef3ddc into master Oct 11, 2023
@montanalow montanalow deleted the montana/gitbook branch October 11, 2023 22:21
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.

2 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/postgresml/postgresml/pull/1052

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy