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

Rebuild the Sectile logic #69

Merged
merged 16 commits into from Jun 11, 2021
Merged

Rebuild the Sectile logic #69

merged 16 commits into from Jun 11, 2021

Conversation

norm
Copy link
Owner

@norm norm commented Jun 11, 2021

After a lot of testing Flourish v0.10's new Sectile fragments editing
interface in the blueprint page, I realised I hadn't been using the
source/type dimensions well.

"source" is an overloaded term, meaning both a page source (a TOML or
Markdown file definining a page), an output web page (Flourish calls the
generator for most sources SourceGenerator, and I am using source as
the reference name in generate.py) so using it as the dimension to
represent "the source of the source" was one to many.

Rebuild the Sectile templates to use the new dimensions.

norm added 16 commits June 11, 2021 11:39
After a lot of testing Flourish v0.10's new Sectile fragments editing
interface in the blueprint page, I realised I hadn't been using the
source/type dimensions well.

"source" is an overloaded term, meaning both a page source (a TOML or
Markdown file definining a page), an output web page (Flourish calls the
generator for most sources SourceGenerator, and I am using `source` as
the reference name in `generate.py`) so using it as the dimension to
represent "the source of the source" was one to many.

This commit changes the dimension "source" to "origin" to be clearer,
but doesn't change any source to use the new dimension. That will
come in the next set of commits.
For the Sectile updates:
  * source:"api.github.com" becomes origin:"github"
  * type:"github" becomes type:"repository_activity"

Adds repositories mentioned in the log as metadata, both as the raw
in `repository`, and in slugified form in `tag`.
Option-Space on macOS provides a non-breaking space. I'll
sometimes accidentally type this next to using Option-Hyphen
to get an em- or en-dash. And I didn't notice this until
Sublime Text 3 started highlighting them.
For the Sectile updates:
  * source:"instagram" becomes origin:"instagram"
  * type:"instagram" becomes type:"photo"

Other metadata updates:
  * put published after title
For the Sectile updates:
  * source:"twitter" becomes origin:"twitter-norms_ps4"

Other metadata updates:
  * source_url becomes original_url
  * a little rearranging of the order of keys
  * camel-cased hashtags (#RedDeadRedemption2) are now hyphenated when
    added as tags (reddeadredemption2 becomes red-dead-redemption-2)
  * images are HTTPS
For the Sectile updates:
  * source:"twitter" becomes origin:"twitter-cackhanded"

Other metadata updates:
  * source_url becomes original_url
  * a little rearranging of the order of keys
  * camel-cased hashtags are now hyphenated
  * images are HTTPS
For the Sectile updates:
  * source:"Foursquare (Swarm)" becomes origin:"foursquare"
  * type:"foursquare" becomes type:"checkin"

Other metadata updates:
  * put published after title
For the Sectile updates:
  * source:"YouTube (... channel)" becomes origin:"youtube"
  * type:"youtube" becomes type:"video"
  * adds origin_link_text:"... channel"
  * adds origin_link_url:[channel url]

Other metadata updates:
  * put published after title
  * move video_id up
They are found in the description, and from the channel name
(except where it is just my name, that's superflouous).
For the Sectile updates:
  * source:"gifs.cackhanded.net" becomes origin:"gifs"
  * the key source_url becomes origin_link_url
Ensure everything has an origin key and nothing has a source key.

Remove accidental duplicates.
@norm norm merged commit b19f06a into main Jun 11, 2021
@norm norm deleted the the-great-assigning branch June 11, 2021 13:27
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.

None yet

1 participant