Skip to content

build with travis and doctr#55

Merged
ocefpaf merged 4 commits intooceanhackweek:masterfrom
ocefpaf:use_doctr
Mar 30, 2020
Merged

build with travis and doctr#55
ocefpaf merged 4 commits intooceanhackweek:masterfrom
ocefpaf:use_doctr

Conversation

@ocefpaf
Copy link
Copy Markdown
Member

@ocefpaf ocefpaf commented Mar 30, 2020

@emiliom I sent a request to activate Travis-CI here, not sure who will get the e-mail.

We'll need this to publish the older versions of the site, a draft and current version.

Comment thread .travis.yml Outdated

env:
global:
- secure:
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Don't merge this yet. I need to get Travis-CI configure first and then use doctr to create the encrypted key.

@leewujung
Copy link
Copy Markdown
Member

@ocefpaf turns out that I got the email, not sure why.
Should I select All repositories or Only select repositories in the options?

@amarburg
Copy link
Copy Markdown
Contributor

@ocefpaf I also got the email and OK'ed it ... didn't want to hold up the process.

@ocefpaf
Copy link
Copy Markdown
Member Author

ocefpaf commented Mar 30, 2020

Thanks @amarburg and @leewujung! Somehow I'm still not seeing this repo on Travis-CI. Can you check if you have the proper rights to activate it:

https://travis-ci.org/github/oceanhackweek/oceanhackweek.github.io

@amarburg
Copy link
Copy Markdown
Contributor

Looks like it's building now ...

Screenshot...

Permissions problem?

@ocefpaf
Copy link
Copy Markdown
Member Author

ocefpaf commented Mar 30, 2020

Looks like it's building now ...

Yep. Thanks!

@ocefpaf
Copy link
Copy Markdown
Member Author

ocefpaf commented Mar 30, 2020

@emiliom I'm merging this so we can perform a few more tests of this new setup. If things fail we should revert this PR.

@ocefpaf ocefpaf merged commit 53a061f into oceanhackweek:master Mar 30, 2020
@ocefpaf ocefpaf deleted the use_doctr branch March 30, 2020 21:16
@ocefpaf
Copy link
Copy Markdown
Member Author

ocefpaf commented Mar 30, 2020

Adjusting it to https://drdoctr.github.io/recipes.html#using-doctr-with-github-io-pages b/c the .io pages are a special case.

@emiliom this will increase the complexity here a little bit b/c our new working branch will be source rather than master.

@emiliom
Copy link
Copy Markdown
Member

emiliom commented Mar 30, 2020

this will increase the complexity here a little bit b/c our new working branch will be source rather than master.

Ok. But once we merge into master, the same auto-build will happen as it does with master right now, right?

@emiliom
Copy link
Copy Markdown
Member

emiliom commented Mar 30, 2020

Sorry, I meant merge into source!

@ocefpaf
Copy link
Copy Markdown
Member Author

ocefpaf commented Mar 30, 2020

Ok. But once we merge into master, the same auto-build will happen as it does with master right now, right?

Yep. doctr manages the HTML in the publication branch (master in this case) and the HTML generation in another (source). The master -> gh-pages is easier to setup but I'm having some issues here, specially b/c this is a .io site, which behaves differently (thanks GitHub!).

If I cannot make this work until tomorrow afternoon I'll revert the changes and look for an alternative to doctor.

@ocefpaf
Copy link
Copy Markdown
Member Author

ocefpaf commented Mar 30, 2020

BTW, the site is down b/c somehow doctr cannot find new modifications even though there are some. I'm in touch with upstream in drdoctr/doctr#313 (comment), it must be something simple I'm missing.

@ocefpaf
Copy link
Copy Markdown
Member Author

ocefpaf commented Mar 31, 2020

Alright, the site is back up! The main one is at https://oceanhackweek.github.io/ and the 2019 is published on https://oceanhackweek.github.io/ohw19/

We can freeze sites by creating a tag and they will get published are https://oceanhackweek.github.io/<TAGNAME>.

I'm working on a way to publish a branch, say draft, to a https://oceanhackweek.github.io/draft, to make it easier to stage modifications.

@emiliom
Copy link
Copy Markdown
Member

emiliom commented Mar 31, 2020

Wonderful!! I love the idea of using a tag. It really is a "release", so it makes perfect sense. Thank you!!

However, the content of the ohw19 site is mostly wrong at this time. It's the content from the current site (master branch), except for what's coming from the _config.yml file, which is correct (ohw19). Also the pages available from the menu are correct.

@ocefpaf
Copy link
Copy Markdown
Member Author

ocefpaf commented Mar 31, 2020

However, the content of the ohw19 site is mostly wrong at this time. It's the content from the current site (master branch), except for what's coming from the _config.yml file, which is correct (ohw19). Also the pages available from the menu are correct.

Yep. There is some fine tweaking that I need to do. Right now I'm puzzled by the fact that the tag overwrote the root site :-/

@emiliom
Copy link
Copy Markdown
Member

emiliom commented Mar 31, 2020

Right now I'm puzzled by the fact that the tag overwrote the root site :-/

Right! I hadn't noticed that. The main site and the ohw19 site are identical.

@ocefpaf
Copy link
Copy Markdown
Member Author

ocefpaf commented Mar 31, 2020

Right! I hadn't noticed that. The main site and the ohw19 site are identical.

It should be fixed now. The last missing piece is to change the 2019 site to prepend the ohw19 slug so the links work as expected.

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.

4 participants