Code Monkey home page Code Monkey logo

arxiv-docs's Introduction

info.arxiv.org pages

Help, about, policy and other pages for arXiv.

Overview

This is where to make edits to the about, help, labs, new and other pages at info.arxiv.org. These are written in markdown and turned into HTML pages with mkdocs-material.

How to do a Quick Edit on github

To do a quick edit, use this is a 3 step process:

1st: Make your edit and commit to the develop branch

2nd: Make a PR from develop to master, get that reviewed

3rd: Merge the PR to master

This commits directly to the develop branch. If you are doing a more involved group of edits or changes, please use a process like git flow. If you are not familiar with this ask a dev or an admin to help you.

1st: Make your edit on github

To edit a page first go to the info.arxiv.org page you want to edit. Ex https://info.arxiv.org/help/gzip.html

gzip page

There click on the pencil icon to edit the page. That will take you to the corresponding page in github.

gzip page

There click "edit" and you can edit contents of the page in github. Once you have made changes you can click preview to see how it will look when completed There are slight differences between the markdown we use and what github uses.

gzip page

Once you are happy with your changes you can save the by going to the bottom of the edit and "Commit changes". Commit is the term github and git use for saving. You should put a brief note in the first text area. You may add longer note in the larger text area if you have more to say about your changes. Then you can commit your changes to the branch develop.

The above step will not put your changes live on info.arxiv.org. At that point you have only saved the edit in github.

If you have more changes that are grouped with this change make them in github and commit them.

2nd: Make a Pull Request from develop to master

Once you have done all the changes you wanted you need to get your changes reviewed. This is done by "creating a PR." PR stands for pull request.

To make a new PR click the "Pull Requests" tab on the top of a github page. Then click the green "New Pull Request." You want changes from the branch develop to get put into the branch called master.

gzip page

From there you can give your PR a title and add a note about it. Also add reviewers on the left. Then click the green "Create Pull Request"

Github will email all the reviewers.

3rd: Merge the PR to master to Deploy Changes

To get your changes deployed, merge it to the branch called master. This will cause automated scripts to deploy the changes to info.arxiv.org. If you are unsure how to do this, ask a dev or admin to do it for you.

Authoring Markdown

See AUTHORING.md

Building on your local machine

Instead of using github to edit you can check all the files for arxiv-docs to your laptop to edit and preview.

git clone [email protected]:arXiv/arxiv-docs.git
cd arxiv-docs
python --version
# 3.8.12
python -m venv docs-venv
source docs-venv/bin/activate
pip install -r requirements.txt
mkdocs serve
google-chrome https://localhost:8000/index.html

Then you will have the site served locally with hot reloading on edits. In your browser, go to http://localhost:8000/index.html

Deployment to info.arxiv.org

Commits or merges to arxiv-docs master branch will deploy the site.

The cloud build YAML files combined with CloudBuild triggers in arxiv-production comprise the deployment pipeline for arxiv-docs.

Previews of PRs

PRs that will merge to the branch develop on the github repo arxiv-docs will deploy previews at https://storage.googleapis.com/arxiv-docs-prs/YOUR_PR_NAME/index.html This preview can been seen by the public, everything in the github arxiv-docs repo can also be seen by the public.

Direct commits to the develop branch will not generate a preview.

Historical site content

See https://github.com/arXiv/arxiv-docs/releases for branches prior to 2023 when content was shifted to the source/ directory.

arxiv-docs's People

Contributors

jimentwood avatar jweiskoff avatar sbbcornell avatar afromme avatar jlmorano avatar bdc34 avatar mhl10 avatar bmaltzan avatar alisonhofer avatar erickpeirson avatar cbf66 avatar sdorphan avatar michemochi avatar eawoods avatar davidlfielding avatar miranda-arxiv avatar rebamrich avatar mnazzaro avatar ab829 avatar lukasschwab avatar ntai-arxiv avatar tkivisik avatar hayesall avatar dependabot[bot] avatar evensgn avatar tomresing avatar steinnsigurdsson avatar sesodesa avatar musoke avatar gennadiyev avatar

Watchers

 avatar

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.