# github1s
**Repository Path**: xujunze/github1s
## Basic Information
- **Project Name**: github1s
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 1
- **Created**: 2021-11-08
- **Last Updated**: 2021-11-22
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README

# github1s
One second to read GitHub code with VS Code.
## Usage
Just add `1s` after `github` and press `Enter` in the browser address bar for any repository you want to read.
For example, try it on the VS Code repo:
[https://github1s.com/microsoft/vscode](https://github1s.com/microsoft/vscode)

For browser extensions, see [Third-party Related Projects](https://github.com/conwnet/github1s#third-party-related-projects).
Or save the following code snippet as a bookmarklet, you can use it to quickly switch between github.com and github1s.com (GitHub markdown doesn't allow js links, so just copy it into a bookmark).
```
javascript: window.location.href = window.location.href.replace(/github(1s)?.com/, function(match, p1) { return p1 ? 'github.com' : 'github1s.com' })
```
### Develop in the cloud
To edit files, run Docker containers, create pull requests and more, click the "Develop your project on [Gitpod](https://www.gitpod.io)" button in the status bar. You can also open the Command Palette (default shortcut `Ctrl+Shift+P`) and choose `GitHub1s: Edit files in Gitpod`.

## Documentation
- [How it works](https://github.com/conwnet/github1s/blob/master/docs/guide.md)
- [Roadmap](https://github.com/conwnet/github1s/projects/1)
## Enabling Private Repositories
If you want to view non-public repositories, you need to add an OAuth token. The token is stored only in your browser, and only send to GitHub when fetching your repository's files. Click on the icon near the bottom of the left-hand row of icons, and the dialog box will prompt you for it, and even take you to your GitHub settings page to generate one, if needed.
## Screenshots


## Development
### Cloud-based development
You can start an online development environment with [Gitpod](https://www.gitpod.io) by clicking the following button:
[](https://gitpod.io/#https://github.com/conwnet/github1s)
### Local development
```bash
git clone git@github.com:conwnet/github1s.git
cd github1s
yarn
yarn watch
yarn serve # in another shell
# Then visit http://localhost:5000 or http://localhost:5000/conwnet/github1s once the build is completed.
```
#### Local development with full VS Code build
You need [these prerequisites (the same ones as for VS Code)](https://github.com/microsoft/vscode/wiki/How-to-Contribute#prerequisites) for development with full VS Code build.
Please make sure you could build VS Code locally before the watch mode.
To verify the build:
```bash
cd github1s
yarn build:vscode
```
After the inital successful build, you could use the watch mode:
```bash
cd github1s
yarn
yarn watch-with-vscode
yarn serve # in another shell
# Then visit http://localhost:5000 or http://localhost:5000/conwnet/github1s once the build is completed.
```
### ... or ... VS Code + Docker Development
You can use the VS Code plugin [Remote-Containers](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) `Dev Container` to use a Docker container as a development environment.
1. Install the Remote-Containers plugin in VS Code & Docker
2. Open the Command Palette (default shortcut `Ctrl+Shift+P`) and choose `Remote-Containers: Clone Repository in Container Volume...`
3. Enter the repo, in this case `https://github.com/conwnet/github1s.git` or your forked repo
4. Pick either, `Create a unique volume` or `Create a new volume`
- Now VS Code will create the docker container and connect to the new container so you can use this as a fully setup environment!
5. Open a new VS Code Terminal, then you can run the `yarn` commands listed above.
```bash
yarn
yarn watch
yarn serve # in another shell
# Then visit http://localhost:5000 or http://localhost:5000/conwnet/github1s once the build is completed.
```
### Format all codes
```bash
yarn format
```
It uses `prettier` to format all possible codes.
## Build
```bash
yarn
yarn build
```
## Feedback
- If something is not working, [create an issue](https://github.com/conwnet/github1s/issues/new)
- If you have a question, [discuss on gitter](https://gitter.im/conwnet/github1s)
## Project Sponsors
The continued development and maintenance of GitHub1s is made possible by these generous sponsors:
|
|
netcon 💻 🖋 |
xcv58 💻 🖋 |
Siddhant Khare 💻 🖋 |