Skip to content
Merged
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
30 changes: 16 additions & 14 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,35 +10,37 @@ on:

jobs:
deploy:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
fetch-depth: 0

- name: Setup Yarn
uses: actions/setup-node@v2
- run: yarn install
- uses: actions/checkout@v3

- name: Read .env hugo version
id: hugo-version
run: |
. ./.env
echo "::set-output name=HUGO_VERSION::${HUGO_VERSION}"

- name: Setup Hugo
- name: Add hugo nodejs dependencies
uses: actions/setup-node@v3
with:
node-version: "16"

- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
# sync versions with docker-compose .env ala
# sync versions with docker-compose .env ala
# https://github.com/marketplace/actions/hugo-setup#%EF%B8%8F-read-hugo-version-from-file
hugo-version: '${{ steps.hugo-version.outputs.HUGO_VERSION }}'
hugo-version: "${{ steps.hugo-version.outputs.HUGO_VERSION }}"
extended: true

- name: Build
- name: Build Hugo site
env:
HUGO_ENV: "production"
run: hugo --minify
run: |
yarn install
hugo mod init github.com/openmodelingfoundation/openmodelingfoundation.github.io
hugo mod get github.com/google/docsy@v0.4.0
hugo --minify

- name: Deploy
if: github.event_name == 'push'
Expand Down
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
[submodule "themes/docsy"]
path = themes/docsy
url = https://github.com/google/docsy.git
10 changes: 8 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,17 @@ ARG HUGO_VERSION=0.101.0
ARG DIST_TAG=-ext-ubuntu
FROM klakegg/hugo:${HUGO_VERSION}${DIST_TAG}

ARG DOCSY_VERSION=v0.4.0

LABEL maintainer="CoMSES Net <support@comses.net>"

WORKDIR /src
COPY ./package.json ./yarn.lock /src/
COPY config.toml package.json /src/

RUN git config --global --add safe.directory /src \
&& hugo mod init github.com/openmodelingfoundation/openmodelingfoundation.github.io \
&& hugo mod get github.com/google/docsy@${DOCSY_VERSION}

RUN yarn install
COPY . /src/

CMD ["server"]
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ commands :

## build : build files but do not run a server.
build :
git submodule update --init --recursive
docker-compose build --pull

## serve : start and run a local server.
Expand Down
3 changes: 1 addition & 2 deletions assets/scss/_sidebar-tree-with-links.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.td-sidebar-nav {

.td-page-meta {
a {
display: block;
Expand All @@ -8,4 +7,4 @@
font-weight: $font-weight-medium;
}
}
}
}
13 changes: 11 additions & 2 deletions assets/scss/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,16 @@
}

footer {
min-height: 150px;
min-height: 160px;

.logo {
max-width: 100%;
height: 60%;
}

a {
color: orange !important;
}

a:hover {
color: white !important;
Expand Down Expand Up @@ -63,4 +72,4 @@ footer {
}
}

@import "styles_project";
@import "styles_project";
25 changes: 21 additions & 4 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ title = "The Open Modeling Foundation"
enableRobotsTXT = true

# Hugo allows theme composition (and inheritance). The precedence is from left to right.
theme = ["docsy"]
# NB: disabled in favor of module settings https://www.docsy.dev/docs/updating/convert-site-to-module/
# theme = ["github.com/google/docsy", "github.com/google/docsy/dependencies"]

# Will give values to .Lastmod etc.
enableGitInfo = true
Expand Down Expand Up @@ -33,6 +34,19 @@ pygmentsUseClassic = false
# See https://help.farbox.com/pygments.html
pygmentsStyle = "tango"

# module settings
[module]
proxy = "direct"
[module.hugoVersion]
extended = true
min = "0.101.0"
[[module.imports]]
path = "github.com/google/docsy"
disable = false
[[module.imports]]
path = "github.com/google/docsy/dependencies"
disable = false

# Configure how URLs look like per section.
[permalinks]
blog = "/:section/:year/:month/:day/:slug/"
Expand All @@ -59,7 +73,7 @@ anchor = "smart"

[languages]
[languages.en]
title = ""
title = "The Open Modeling Foundation"
description = "The Open Modeling Foundation is an alliance of modeling organizations that coordinates and administers a common, community developed body of standards and best practices among diverse communities of modeling scientists."
languageName ="English"
# Weight used for sorting.
Expand All @@ -74,6 +88,9 @@ time_format_blog = "02.01.2006"

# Everything below this are Site Params

[outputs]
section = [ "HTML", "RSS" ]

[params]

working_group_request_form = "https://asu.questionpro.com/omf-wg-joinrequest"
Expand All @@ -96,7 +113,7 @@ archived_version = false
# The version number for the version of the docs represented in this doc set.
# Used in the "version-banner" partial to display a version number for the
# current doc set.
version = "0.1"
version = "0.4"

# A link to latest version of the docs. Used in the "version-banner" partial to
# point people to the main doc site.
Expand Down Expand Up @@ -128,7 +145,7 @@ offlineSearch = true
# User interface configuration
[params.ui]
# Enable to show the side bar menu in its compact state.
sidebar_menu_compact = false
sidebar_menu_compact = true
# Set to true to disable breadcrumb navigation.
breadcrumb_disable = false
# Set to true to hide the sidebar search box (the top nav search box will still be displayed if search is enabled)
Expand Down
4 changes: 3 additions & 1 deletion content/en/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ <h3 class="mb-3 pt-3 font-weight-light">Enabling next generation modeling of hum
<a class="btn btn-lg btn-outline-light mb-4" href="{{< relref "/standards" >}}">
Standards <i class="fas fa-lightbulb ml-2"></i>
</a>
<div class="mx-auto mt-5">
{{< blocks/link-down color="info" >}}
</div>
</div>

{{< blocks/link-down color="primary-light" >}}

{{< /blocks/cover >}}

Expand Down
2 changes: 2 additions & 0 deletions content/en/about/_index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
title: About
linkTitle: About
cascade:
- type: "docs"
menu:
main:
weight: 20
Expand Down
3 changes: 2 additions & 1 deletion content/en/contribute/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ title: "How to Contribute"
linkTitle: Contribute
date: 2020-05-04T10:03:13-07:00
cascade:
github_issue_filter: label:"OMF site info"
- type: "docs"
- github_issue_filter: label:"OMF site info"
menu:
main:
weight: 20
Expand Down
2 changes: 1 addition & 1 deletion content/en/contribute/call-for-translators.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ linkTitle: "Call for Translators/Interpreters"
date: 2020-05-07T10:34:28-07:00
---

{{< include path="CALL_FOR_TRANSLATORS.md" >}}
{{% readfile "/CALL_FOR_TRANSLATORS.md" %}}
8 changes: 4 additions & 4 deletions content/en/governance/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
title: Governance
linkTitle: Governance
cascade:
type: governance
github_issue_filter: "label:governance"
github_issue_template: governance.md
github_discuss_category: governance
- type: "docs"
- github_issue_filter: "label:governance"
- github_issue_template: governance.md
- github_discuss_category: governance
menu:
main:
weight: 20
Expand Down
3 changes: 2 additions & 1 deletion content/en/standards/_index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
title: "Standards"
linkTitle: "Standards"
type: site-wide
cascade:
- type: docs
menu:
main:
weight: 20
Expand Down
1 change: 0 additions & 1 deletion content/en/standards/accessibility/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: "Accessibility"
linkTitle: "Accessibility"
cascade:
type: accessibility
github_issue_filter: "label:\"standards - accessibility\""
github_issue_template: accessibility.md
github_discuss_category: "accessibility-standards"
Expand Down
2 changes: 1 addition & 1 deletion content/en/standards/documentation/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Documentation
linkTitle: Documentation
cascade:
type: documentation
type: docs
github_issue_filter: "label:\"standards - documentation\""
github_issue_template: documentation.md
github_discuss_category: "documentation-standards"
Expand Down
1 change: 0 additions & 1 deletion content/en/standards/interoperability/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: Interoperability
linkTitle: Interoperability
cascade:
type: interoperability
github_issue_filter: "label:\"standards - interoperability\""
github_issue_template: interoperability.md
github_discuss_category: "interoperability-standards"
Expand Down
1 change: 0 additions & 1 deletion content/en/standards/reusability/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: Reusability
linkTitle: Reusability
cascade:
type: reusability
github_issue_filter: "label:\"standards - reusability\""
github_issue_template: reusability.md
github_discuss_category: "reusability-standards"
Expand Down
13 changes: 10 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
version: '3.8'
services:
hugo:
image: openmodelingfoundation/omf.io:latest
image: openmodelingfoundation/omf:latest
build:
context: .
args:
HUGO_VERSION: ${HUGO_VERSION}
ports:
- "127.0.0.1:1313:1313"
volumes:
- .:/src
- ./archetypes:/src/archetypes
- ./assets:/src/assets
- ./content:/src/content
- ./i18n:/src/i18n
- ./layouts:/src/layouts
- ./resources:/src/resources
- ./static:/src/static
- ./.git:/src/.git
- /src/themes
- /src/node_modules
31 changes: 0 additions & 31 deletions layouts/about/baseof.html

This file was deleted.

17 changes: 0 additions & 17 deletions layouts/about/list.html

This file was deleted.

3 changes: 0 additions & 3 deletions layouts/about/single.html

This file was deleted.

31 changes: 0 additions & 31 deletions layouts/contribute/baseof.html

This file was deleted.

Loading