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

make a variable of base css path #14

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ galaxy_subsite_default_welcome: "https://galaxyproject.org"
galaxy_subsite_base_domain: "usegalaxy.org"
galaxy_subsite_dir: /srv/subsite
galaxy_subsite_base_css: "#masthead { background-color: #2c3143;}" # Standard Galaxy colour. Override for others
galaxy_subsite_base_stylesheet: "{{ galaxy_server_dir }}/static/dist/base.css"
galaxy_subsites: []
# - name: test # Accessible at test.usegalaxy.org
# brand: Testing
Expand Down
4 changes: 2 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@
# Main css file that's used as a fallback.
- name: Create main site CSS

Choose a reason for hiding this comment

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

[ansible-lint] reported by reviewdog 🐶
no-changed-when Commands should not change things if nothing needs doing

ansible.builtin.shell: |
cat {{ galaxy_server_dir }}/static/style/base.css {{ galaxy_subsite_dir }}/{{ galaxy_subsite_base_domain }}-custom.css \
cat {{ galaxy_subsite_base_stylesheet }} {{ galaxy_subsite_dir }}/{{ galaxy_subsite_base_domain }}-custom.css \
> {{ galaxy_subsite_dir }}/{{ galaxy_subsite_base_domain }}.css

# Make the final CSS files.
- name: Merge CSS files for subsites

Choose a reason for hiding this comment

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

[ansible-lint] reported by reviewdog 🐶
no-changed-when Commands should not change things if nothing needs doing

ansible.builtin.shell: |
cat {{ galaxy_server_dir }}/static/style/base.css {{ galaxy_subsite_dir }}/{{ item.name }}.{{ galaxy_subsite_base_domain }}-custom.css \
cat {{ galaxy_subsite_base_stylesheet }} {{ galaxy_subsite_dir }}/{{ item.name }}.{{ galaxy_subsite_base_domain }}-custom.css \
> {{ galaxy_subsite_dir }}/{{ item.name }}.{{ galaxy_subsite_base_domain }}.css
with_items: "{{ galaxy_subsites }}"

Expand Down
Loading