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

Juju ecosystem docs refresh #565

Merged
merged 28 commits into from
Feb 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
815973d
create juju ecosystem docs page
abbiesims Jan 22, 2025
406dac2
fix logo section
abbiesims Jan 23, 2025
ea2f1b3
add footer
abbiesims Jan 23, 2025
7c958d9
add missing footer links
abbiesims Jan 23, 2025
cd9fb1d
render docs page
abbiesims Jan 23, 2025
6c0f2eb
fix python lint
abbiesims Jan 23, 2025
92b61b8
add selected item in navigation
abbiesims Jan 23, 2025
6db469e
add shallow section
abbiesims Jan 24, 2025
3418d20
remove shallow strip
abbiesims Jan 24, 2025
590698c
add juju.is redirects
abbiesims Jan 28, 2025
2f898f6
change Observe link
abbiesims Jan 29, 2025
5ad8f33
add search functionality
abbiesims Jan 30, 2025
cf7e75e
fix requirements.txt
abbiesims Jan 30, 2025
a03c73d
fix hr on smaller screens
abbiesims Jan 31, 2025
9fafcbf
allow async events in flask
abbiesims Jan 31, 2025
521bd92
fix python linting
abbiesims Jan 31, 2025
34aabc3
fix async search event loop
abbiesims Jan 31, 2025
cb1ce33
fix python linting
abbiesims Jan 31, 2025
8300753
replace async search with threadpool
abbiesims Jan 31, 2025
3c4da40
move Juju tutorial CTA
abbiesims Feb 3, 2025
352b462
add logging for debugging
abbiesims Feb 3, 2025
ed672fe
clean up logging logic
abbiesims Feb 3, 2025
7d0ca9e
add pagination and load more results button
abbiesims Feb 3, 2025
4e5e1fb
add spacing to search results
abbiesims Feb 3, 2025
275592e
add redirect for empty search and fix container styling
abbiesims Feb 4, 2025
2cc2ab7
combine api request for hosted docs
abbiesims Feb 4, 2025
8c5a725
fix formatting on mobile
abbiesims Feb 4, 2025
3c2c201
change link on search page to juju.is/docs
abbiesims Feb 4, 2025
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
535 changes: 535 additions & 0 deletions redirects.yaml

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ requests==2.31.0
semver==3.0.2
cachetools==5.3.3
flask-cors==4.0.0
scikit-learn==1.6.1
29 changes: 28 additions & 1 deletion static/sass/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -329,4 +329,31 @@ html {

strong {
font-weight: bold !important;
}
}

.p-image-container, [class^=p-image-container--] {
aspect-ratio: auto !important;
height: auto !important;
}

.p-image-container__image {
display: block;
}

@media (620px <= width < 1036px) {
.any-application-container img {
object-fit: cover;
object-position: center;
width: 100%;
height: 230px;
}
}

@media (width < 620px) {
.any-application-container img {
object-fit: cover;
object-position: center;
width: 100%;
height: 200px;
}
}
5 changes: 4 additions & 1 deletion templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@

{% block content %}{% endblock %}

{% include "footer.html" %}
{% block footer %}
{% include "footer.html" %}
{% endblock footer %}

{% endblock body %}

<div class="u-hide" id="contact-form-container" data-form-location="/get-in-touch" data-form-id="1337" data-lp-id="2313" data-return-url="http://juju.is/thank-you" data-lp-url=""></div>
Expand Down
25 changes: 22 additions & 3 deletions templates/docs/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,28 @@
<div class="l-docs__main">
<div class="row">
<form class="p-search-box u-no-margin--bottom" action="/docs/search">
<input type="search" class="p-search-box__input" name="q" {% if query %}value="{{ query }}"{% endif %} placeholder="Search documentation" required/>
<button type="button" class="p-search-box__reset" alt="reset" onclick="this.previousElementSibling.value = '';this.previousElementSibling.focus()"><i class="p-icon--close">Reset</i></button>
<button type="submit" class="p-search-box__button"><i class="p-icon--search">Search</i></button>
<input
type="search"
class="p-search-box__input"
name="q"
{% if query %}value="{{ query }}"{% endif %}
placeholder="Search documentation"
required
/>
<button
type="button"
class="p-search-box__reset"
alt="reset"
onclick="this.previousElementSibling.value = '';this.previousElementSibling.focus()"
>
<i class="p-icon--close">Reset</i>
</button>
<button
type="submit"
class="p-search-box__button"
>
<i class="p-icon--search">Search</i>
</button>
</form>
</div>
</div>
Expand Down
151 changes: 0 additions & 151 deletions templates/docs/document.html

This file was deleted.

Loading