Skip to content

Utterances - Use Customized Fork#180

Merged
alebabai merged 9 commits intomasterfrom
feature/utterances
Jul 24, 2018
Merged

Utterances - Use Customized Fork#180
alebabai merged 9 commits intomasterfrom
feature/utterances

Conversation

@alebabai
Copy link
Contributor

what

  • Use own client implementation of Utterances (to make it editable and more maintainable)

why

#16

@alebabai alebabai added the wip label Jul 18, 2018
Makefile Outdated
rm -rf utterances
git clone --branch master https://github.com/cloudposse/utterances.git
cd utterances && yarn && yarn build
mkdir -p public/utterances
Copy link
Member

Choose a reason for hiding this comment

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

I don't think you want this mkdir here since below you're moving (renaming) one directory to this name.

Makefile Outdated
## Build customized utterances widget
utterances/build:
rm -rf utterances
git clone --branch master https://github.com/cloudposse/utterances.git
Copy link
Member

Choose a reason for hiding this comment

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

add UTTERANCES_VERSION=master

Makefile Outdated
## Build customized utterances widget
utterances/build:
rm -rf utterances
git clone --branch master https://github.com/cloudposse/utterances.git
Copy link
Member

Choose a reason for hiding this comment

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

Hrmm... this is shaddowing the utterances submodule

Copy link
Member

@osterman osterman Jul 18, 2018

Choose a reason for hiding this comment

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

image

rm -rf utterances

## Build front-end components
components/build: utterances/build
Copy link
Member

Choose a reason for hiding this comment

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

add an @exit 0 below the target name

Makefile Outdated
mv utterances/dist/*.svg public/assets
mkdir -p public/utterances/
mv utterances/dist/utterances.html public/utterances/index.html
mkdir -p static/js/utterances static/css/utterances static/assets/utterances
Copy link
Member

Choose a reason for hiding this comment

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

We don't have to be so strict about adhering to static/js, static/css, etc when it relates to utterances. I would be okay with just deploying it all to static/utterances since it's a self-contained app

<div class="utterances-wrapper">
<script src="/js/utterances/client.js"
repo="docs/docs"
repo="alebabai/docs"
Copy link
Member

Choose a reason for hiding this comment

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

Oops

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeap, my debug stuff - removed it already)

* use /static/components/* to store all things
@alebabai
Copy link
Contributor Author

Require cloudposse-archives/utterances#1 to be merged

@osterman osterman removed the wip label Jul 24, 2018
@osterman osterman changed the title Utterances - Use own customized fork Utterances - Use Customized Fork Jul 24, 2018
@osterman osterman mentioned this pull request Jul 24, 2018
@alebabai alebabai merged commit 35fff53 into master Jul 24, 2018
@alebabai alebabai deleted the feature/utterances branch July 24, 2018 23:09
goruha added a commit that referenced this pull request Jul 25, 2018
…faq-rotate-ssh-k8s

* 'faq-rotate-ssh-k8s' of github.com:cloudposse/docs:
  Utterances - Use Customized Fork (#180)
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