programminghistorian / jekyll Goto Github PK
View Code? Open in Web Editor NEWJekyll-based static site for The Programming Historian
Home Page: http://programminghistorian.org
Jekyll-based static site for The Programming Historian
Home Page: http://programminghistorian.org
(See [Mac][], [Windows,][Mac][Linux][Mac] for installation instructions)
These aren't linked.
Please remove all instances of jekyll from any links to resources such as javascript or css files and from links to other parts of the website. Once this is done I will make the appropriate changes on our dns servers.
for example the links for css should look like "css/style.css and links for other pages should look like /about instead of /jekyll/css/style.css and /jekyll/about
sorry i don't know how to do this.
Some of the lessons on the old site had nested URLs (especially the Zotero ones). If we are unable to fix these with redirects, so as to make sure inbound links still work, it is also possible to specify permalinks on a post-by-post basis in the lesson front matter.
I can't find the lessons I'm working on, because we don't have the title or the authors listed. Just filenames. Is there a way we can change the display on https://github.com/programminghistorian/jekyll/tree/gh-pages/lessons to make it more editor-friendly?
See "Manipulating Strings in Python" for an example.
Also span class "reserved," which seems to be for inline code.
Find lessons that had tables and fix Markdown syntax.
In the first Zotero API lesson, the user is prompted to use either the sample Zotero library or their own personal library. If you are using your own Zotero library, then the code needs to be changed from 'group' to 'user', otherwise the code will not compute when it's run in a text editor. There also needs to be a reminder in the subsequent second and third Zotero API lessons so users are able to run the code with no problems.
Everyone knows if it's legitimate, it's on wikipedia. We're going to start adding some links to PH on wikipedia where relevant.
Caleb agreed to take a look at this. We need details on how to add reviewers, where to store data, and a few paragraphs that can be sent to authors for how they can make copy-edits.
Also, shouldn't these be in a /documentation directory so they're easy to find?
This afternoon I worked on a way to take all of the lessons on the old Programming Historian site and convert them to Jekyll-friendly markdown---using programmatic techniques learned from the Programming Historian!
I've committed my experiments on the master branch instead of on the gh-pages branch, so that we can figure out problems with this workflow before moving forward and pushing things to the live site.
Basically, my workflow went like this:
These are really easy scripts to run, so we can easily revert the conversion commit, make tweaks to the scripts, and try again.
Right now, the converted lessons are in the lessons
folder on the master branch. (I think it may have overwritten the lessons you had already converted, but these are still preserved on the gh-pages
branch.)
I think our best next step would be to do a semi-careful review to see if there are problems in the converted files that we may be able to fix with the bulk conversion process itself. Using Pandoc filters, we can adjust quite a bit at this stage, so I think we should use this issue to note anything that looks weird about the converted files. (EDIT: I've now done some pandoc filter work, and you can see the filter.)
Here are a few things I see that we'll need to attend to:
That's from a very cursory glance. What do you see? Should we bring in the other team members to take a look at this stage, or try to get things even more polished first?
Also not sure if we should open separate issues for each of the above items at this point, or just keep a running list here until we clarify what needs to be done.
Need to wait to do this until after custom domain has been set up.
In the lesson Sustainable Authorship in Plain Text using Pandoc and Markdown, section "About the authors", Grant Wythoff is mentioned, but Dennis Tenen is not. This doesn't seem right: more info needed, I guess!
Best wishes,
Aurélien
thanks.
Move posts out of lessons, and fix syntax.
In the third Zotero lesson I have repeatedly run into problems attempting to run the following set of code in my text editor:
I am using my own personal Zotero library, and I made sure the first two entries in my library had URLs attached to them. Even still the text editor identified a problem with the following line:
With the sample Zotero library, the first two entries have URLs that are simple HTML and thus it is not a problem to open them. It seems as though it cannot run the code with more complicated websites.
In the wake of our bulk conversion to Jekyll, we need to do a close editorial check of each of the Markdown lessons listed below, which are kept in the lessons directory and can be seen live at http://programminghistorian.github.io/jekyll/lessons.
The best way to spot check is probably to look at the live GitHub Pages version of a page alongside its older, ProgrammingHistorian.org version. Be aware that you may see some differences in spacing and color (for example, in the code blocks, which also lack line numbers in the new site); these can be adjusted later with CSS, so they don't require changes to the Markdown files at this stage.
Each lesson check needs to include, at a minimum:
_config.yml
file, as explained in Adding New Lessons.*emphasis*
Markdown syntax) or missing monospace font changes (using the "back ticks" inline code Markdown syntax); particularly in some of the early lessons, there were "span" tags for these things that were lost in the conversion. If you notice lots of missing italics / code styling in your lesson, you can also look on the spans branch for deprecated versions of the lessons that do have most of this inline span styling preserved.Our wiki has instructions on Editing Lessons on GitHub.
If you see a systemic problem, or an issue in a lesson that you're not sure how to fix, see the instructions on Reporting Issues so that others can help out.
To "claim" a lesson for proofreading, please leave a comment on this issue listing the ones that you will look at, so we don't duplicate efforts. I'll try to update this list to reflect the lessons claimed in the comments.
When you've finished checking a lesson, the only thing left to "check" is the box!
We need to see whether we have lots of pages linking to lessons/
. If not, we can just replace the index for the whole site with the lessons directory.
The bulk conversion methods that I used (described in #4) were able to carry over most of the necessary structure and metadata from the old website. But some things that were in the original HTML pages did not survive the conversion process.
I'll divide these things into two categories:
figure
environments and figcaptions
(as documented on the repo wiki, we will need to add these back, manually, using Liquid template variables)span
tags or style
attributes within other tags (the filename
and username
span classes were converted to Markdown inline code, but any attributes of those spans were lost; for example, the regular expressions lesson had some red and green highlighting spans that would have to be manually restored)Please report other things that appear to have gone away in the bulk conversion, so I can categorize them on the above lists. If things come up that can be carried over by tweaking our bulk conversion workflow, we should do that before making tweaks to individual markdown files that would be overwritten by the bulk conversion process.
Hi,
Where you show the ci
flag you say:
grep -ci revolution 2014-01-31_JA_america.tsv 2014-02-02_JA_britain.tsv. This repeats the query, but prints a case insensitive count (including instances of both revolution and Revolution). Note how the count has increased nearly 30 fold for those journal article titles that contain the keyword ‘america’.
Shouldn't that be "keyword revolution"?
modified_html
original_html
In http://programminghistorian.org/lessons/sustainable-authorship-in-plain-text-using-pandoc-and-markdown you suggest using the following
Some sentence that needs citation.^[@fyfe_digital_2011 argues that too.]
This is not recommended since it keeps you from switching easily between footnote and author-date styles. Better use the following (no circumflex, no final period inside the square braces, and the final punctuation of the text sentence after the square braces; with footnote styles, pandoc automatically adjusts the position of the final punctuation):
Some sentence that needs citation [@fyfe_digital_2011 argues that too].
The URL for a blog post doesn't match the repo URL, so it can't find the GitHub link.
Would involve making a custom label for each lesson, and then making a link to those.
Per Skype call on August 15:
These were thrown out in bulk conversion. Perhaps set up includes so that author bios can be dropped in on multiple lessons?
Our id number is:
UA-2752866-8
Allison did a really great mockup of what we could do to represent our lessons visually:
https://dl.dropboxusercontent.com/u/58260988/PHDesign.png
We discussed this and really like the idea, but we wanted to ensure the Author names were kept, as were the blurbs about each section. We also thought some good historic images / lithographs would make a better set of images. Allison is going to take this on for next meeting.
There is currently a javascript in our repo that, if enabled, will place a small button beside each code block. When the button is clicked, all the text in the code block will be selected so that the user can easily copy it to his/her clipboard.
Currently, the button is floated to the right of the code block outside the main container, sort of like the sidebar comment icons on a site like Medium. The button is grayed out, as in the first example pictured, until the mouse hovers over the code block or clicks on the button, as in the second example pictured.
Before enabling this across the site, a couple of issues need to be decided:
@fredgibbs, as mentioned in #2, I'm thinking of using Pandoc to convert all the existing lessons to Markdown as a first stab at transition to the new site.
Wondering if we might want to use Markdown "reference links" (which put all URLs at the bottom of the file) instead of inline links, as it would make the Markdown more readable on GitHub?
Students of Ed Baptist's pointed out that the internetarchive
module has changed in ways that break the code in my lesson. I need to remember to go in and fix these to conform to the new API.
do we have a standard set of instructions we send to reviewers in terms of what we want them to do, what we expect, what constitutes a solid review? is it publicly visible?
@fredgibbs I'm preparing to use Pandoc to do a massive bulk conversion of all existing lessons into Markdown. Before doing so, I've been doing some thinking about how code blocks should be handled in the new site.
In the lessons you've already converted, you used Jekyll's preferred highlighting feature. But the problem with this method is that when you view the markdown files in Github, the Github browser itself doesn't recognize those highlighting codes, and instead interprets things that should be commented lines in a code block as level-1 headers.
I'm wondering if it might be better (and would make us less dependent on Jekyll in the long run) to instead use raw HTML tags like pre
for code blocks, and then use CSS styling to handle the language-specific highlighting. That way they would look readable either on the site or on Github.
Thoughts on this issue? Here are a couple of (oldish) sites that outline some of the different possibilities:
This will combine the current Submissions, Contact, and Get Involved page. We will replace "submissions" in the nab bar with "contribute."
@fredgibbs said he would do this.
Bill suggested we put the PH in the Scholarship @ Western portal (at his university), as that seems to have gotten stuff into world cat.
i wonder if it wouldn't be easier especially in the long term for moving lessons through the pipeline and maintaining them if we--instead of putting all lessons as files in the lessons directory, and putting images in the image directory, etc.--put all assets associated with a single lesson (and the lesson .md itself) in a single directory with the same name as the lesson under the main lessons directory. that way all assets (images, files, maybe screencasts or videos in the future) for each lesson stays with the lesson. this shouldn't change the main lesson URLs, though we'd need some scripting to change the image links in the existing lesson files. i think there are distinct advantages for editing and making new lessons with this approach. are there procedural reasons not to do this (other than the work involved to make the switch)?
The section on downloading Bligh's diary could probably revised with a link to the Regular Expressions lesson so that readers can capture pages that contain letters as well as numbers in the script.
I'd like to propose that we handle draft lessons differently than we have been.
Right now, all drafts are being placed in a drafts folder, which is then excluded from the site build by a line in our config file.
My proposal is that we instead keep all lessons, draft or published, in the lessons folder. We will keep drafts from going "live" by putting a published: false
line in the YAML metadata block until it's time to publish the lesson.
The advantages of this are as follows:
git mv
commands in the terminal; publication becomes a simple matter of removing the published: false
line, and this can be done from within the web browser.The one disadvantage I can foresee is that it will be more difficult to distinguish published from unpublished lessons, but perhaps we can keep a running list of these in the Wiki. You can also tell from the commit history or the dates when lessons were edited which ones are in production.
Thoughts?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.