Documentation

The migration process involves a plugin located at that takes a book in HTML format and automates most of the publication process.

Before start

You will need the HTML file for the book from NYU Press.

You’ll need Github access to the repository holding the contents of the website.

And, due to limitations on how Github can allow remote access to repositories, you’ll need a “Personal Access Token” (PAT), which a time-limited password to give other services access to your Github account.

How to get a PAT

Go to the tokens (classic) section on your Settings. To navigate there, use the link provided, or go through Settings > Developer Settings

Personal access tokens > Tokens (classic).

Generate a new token, you will be asked for a description (1), which can be anything you want, and then an expiration date (2) and a list of “scopes” (3).

Set the expiration date to whatever you feel comfortable. You’ll have to get a new token after the expiration date to get access to the NYU Panel.

The only “scope” (permission) needed is “repo” (full control over repositories).

Once you click “Generate token”, you’ll be show the token once. Save it carefully (for instance, on a password manager).

If you lose it, or believe someone could have malicious access to it, you can come back to this section to revoke it.

Adding the book through the panel

Navigate to https://nyu-dss.sutty.nl and use your PAT to access.

Pick the repository for the website you need to add the book to.

You’ll find a list of previously published books and a “create book” section (1). When you open it, you can add a title (2), attach the HTML file for the book (3). When you click the “Create book” button, the migration process will start.

You’ll see a message asking you to wait for a few minutes until the process is done, with a link to Github where you can follow the process.

You can reload this page after a while to find the new book on the list.

Adding a new edition to an existing book

The process is the same as adding a new book, but the file attachment step is done by opening the book from the list.

Under the hood

What just happened is a semi-automated version of the manual steps outlined below. When you upload the HTML file, a “Github Action” runs, extracts all essays, works cited, authors, etc from the file and creates the necessary files to represent them on the website.

A “Pull request” (PR) is created on the Github repository. Once you’re happy will all the changes to the website done on this PR, you can accept it by merging it.

The merge will add the changes to the main branch, which will then be published on the main website.

Adding the book from Github

Adding the book from git command line

After the book is added

Link works cited

Through the panel, you can also link works cited withing essays.

When you open a book after uploading it or even if it was uploaded already, you’ll find a list of essays from that book.

When you open an essay, you’ll find a two pane screen with the essay contents on the left (1), and a couple buttons and a search bar on the right (2).

The panel does its best to find what looks like citations within the essay, and marks them for you (3). If you click on them, the search bar (4) will fill out and provide results (5). If the search results are not accurate, you can change the search terms, until you find the work cited. Use the “Apply” button to link the work cited to its citation.

You can ignore citations that are not correct.

If a citation wasn’t found automatically, you can select the text and use the “Add work cited” button (6) to add it.

Click “Save changes” to save changes.

When you finish with an essay, go back on your browser to continue with the next one.

Review manual actions

When you open the Pull Request (PR for short), a Github Action drops in and runs the migration process. If everything goes OK, in a few minutes you’ll find a new commit on the same PR with all the pages created.

Migration commit

The OK is a green checkmark on the right of the commit message. If it failed, you’ll see a red X mark. Pressing it opens the details. Show should check the details, the migration process can’t do everything automatically and will require manual intervention in a few cases. It will tell you what action you should take.

Opening details on checks passed

Read below for messages and what they mean.

Build log

Once changes are done, you can merge the PR into the main branch. This will run the build and publication process, at the end of which the site will be live at https://keywords.nyupress.org/

Regular messages

Rare messages