Coder Social home page Coder Social logo

newsclips - where to fit in about hub HOT 17 CLOSED

18f avatar 18f commented on September 27, 2024
newsclips - where to fit in

from hub.

Comments (17)

meiqimichelle avatar meiqimichelle commented on September 27, 2024

@gbinal Are the newsclips already in yml (I don't know how github wikis work)? If no, I suggest that as a first step. I could see us pulling this into several parts of the 18f site once its revamped (never fear....still in process and moving). @gboone @mbland thoughts?

from hub.

gbinal avatar gbinal commented on September 27, 2024

No, just hyperlinked in github markdown. I'm happy to convert them but would just need to know where to put the material.

from hub.

meiqimichelle avatar meiqimichelle commented on September 27, 2024

Got it. Well, before you spend the time doing it, I'll let @gboone and @mbland weigh in. I would imagine that the file would go....hmmm....maybe in the data-private repo if that is becoming our 18F data repo in general, but I might not be privy to the latest thinking there.

from hub.

gboone avatar gboone commented on September 27, 2024

Good idea bringing this into the Hub or 18f-site. If it's just links and dates it could be yaml data. If we're going to summarize them at all it might be worth creating a collection for news clips.

from hub.

gbinal avatar gbinal commented on September 27, 2024

Let's go with yaml for now. I've only had the bandwidth to keep track of article links and titles and am not in a position to expand that.

FWIW, I'm not advocating adding this to the main 18f.gsa.gov. Personally, I think that'd be a bit garish. It's more a team resource that doesn't need to be private.

from hub.

meiqimichelle avatar meiqimichelle commented on September 27, 2024

We'll see. It might be interesting to have just the latest news clip show
up somewhere. But yes, understood ;)

On Thu, Jan 8, 2015 at 10:20 AM, Gray Brooks [email protected]
wrote:

Let's go with yaml for now. I've only had the bandwidth to keep track of
article links and titles and am not in a position to expand that.

FWIW, I'm not advocating adding this to the main 18f.gsa.gov. Personally,
I think that'd be a bit garish. It's more a team resource that doesn't need
to be private.


Reply to this email directly or view it on GitHub
#38 (comment).

Michelle Hertzfeld
[email protected]
520-208-3752
202-317-0155
@18F

from hub.

afeld avatar afeld commented on September 27, 2024

It's more a team resource that doesn't need to be private.

Sounds like a good use case for a sub-page of the Hub, then 👍

https://github.com/18F/hub/tree/master/pages#publicly-visible-pages

from hub.

afeld avatar afeld commented on September 27, 2024

...and can be fed by a data file in https://github.com/18F/hub/tree/master/_data, if you like.

from hub.

gbinal avatar gbinal commented on September 27, 2024

I'm happy to put them in as yml in /_data and we can figure out what to do with them.

Just to check, does this look okay to start? (it's the data I have, I'm just asking about format)

- article: Full Text Of Title
  url: http://www.publication.com/name_of_article
- article: Full Text Of Title, 2
  url: http://www.publication.com/name_of_article_2

from hub.

afeld avatar afeld commented on September 27, 2024

👍

from hub.

gbinal avatar gbinal commented on September 27, 2024

#44

from hub.

gbinal avatar gbinal commented on September 27, 2024

Just to confirm, I don't plan to do individual additions to the clips.yml through pull requests but rather as direct commits. Holler if that's any concern, @afeld, @mbland

from hub.

afeld avatar afeld commented on September 27, 2024

Nah that's fine. But if it breaks the build, I will find you :rage1:

😉

from hub.

gbinal avatar gbinal commented on September 27, 2024

:)

from hub.

mbland avatar mbland commented on September 27, 2024

@gbinal For stuff like this that's hard to screw up, that's perfectly fine. Though you may want to do something like the following for a sanity check:

$ ruby -e "require 'yaml'; puts YAML.load_file '_data/public/clips.yml'"

Whoops, I just noticed two things: One, that _data/public really isn't the best place for clips.yml. No matter; we can move it when we get ready to prepare the page. (And, I can better document that no data should be directly added to _data/public; it's an honest mistake and my fault for not having it better documented by now.)

Two:

/usr/local/var/rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/psych-2.0.9/lib/psych.rb:370:in `parse': (_data/public/clips.yml): mapping values are not allowed in this context at line 2 column 26 (Psych::SyntaxError)

The first article: entry contains a colon. I think it needs to be wrapped in quotes. Same for lines 41, 44, 62, 80, 86, 128, 146, 158, 185, and 266. PR to fix: #46

from hub.

gbinal avatar gbinal commented on September 27, 2024

Have tried a first pass at making an html page at #47

@afeld, game to take a look?

from hub.

gbinal avatar gbinal commented on September 27, 2024

Like @afeld says, #47 addresses

from hub.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.