Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: update README #3203

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 81 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,19 @@

This repository contain only Remix's official [Read the Docs](https://readthedocs.org/) documentation source code. Documentation is available [here](https://remix-ide.readthedocs.io/en/latest/).

**If looking for Remix IDE codebase, it has been moved to https://github.com/ethereum/remix-project**
## Remix Project Codebases

Remix Docs (this repo)
- GitHub repo: https://github.com/ethereum/remix-ide/
- Website URL: https://remix-ide.readthedocs.io/en/latest/

Remix IDE
- GitHub repo: https://github.com/ethereum/remix-project
- Website URL: https://remix.ethereum.org

Remix About page
- GitHub repo: https://github.com/ethereum/remix-website/
- Website URL: https://remix-project.org

## About Remix Project

Expand All @@ -23,22 +35,85 @@ Remix libraries work as a core of native plugins of Remix IDE. Read more about l

## Build

Steps to build this project as as:
Steps to build this project are as follows:

First, you need to set up a Python virtual environment. This is a self-contained environment where you can install Python packages without interfering with your system's Python installation. Here's how you can create and activate a Python virtual environment:

```sh
# Create a virtual environment
# By placing in `.vscode` these will be git ignored, and not committed
python3 -m venv .vscode/venv

# Activate the virtual environment
# On Windows:
.vscode\venv\Scripts\activate

# On Unix or MacOS:
source venv/bin/activate
```

Once the virtual environment is activated, you can install the necessary Python packages:

```sh
pip3 install sphinx sphinx_rtd_theme
pip3 install myst-parser
```

Then, you can clone the repository and build the project:

```sh
git clone https://github.com/ethereum/remix-ide.git
cd docs/
cd remix-ide/docs/ # into /docs subfolder
make html
```

Go to `docs/_build/html` and open `index.html` on the browser.
Go to `docs/_build/html` and start a Python HTTP server to serve the HTML files:

```sh
cd _build/html
python3 -m http.server
```

View by visiting `http://localhost:8000` in your web browser.

When you're done, you can deactivate the virtual environment:

```sh
deactivate
```

## Contributing

We wholeheartedly welcome everyone to contribute. Suggestions, issues, queries and feedback are our pleasure. Please join our [Discord]([https://gitter.im/ethereum/remix](https://discord.gg/ZFHV7s44Ef)) server.
We wholeheartedly welcome everyone to contribute. Suggestions, issues, queries and feedback are our pleasure. Please join our [Discord](https://discord.gg/ZFHV7s44Ef) server.

### Translating
The site is internationalized. Do not make any corrections to .po or .pot files. These get handled in our translation management platform. To help with the translation of our documentation, please visit https://crowdin.com/project/remix-translation. To help with our translations of Remix's UI, please visit https://crowdin.com/project/remix-ui.
The site is internationalized. **Do not make any corrections to .po or .pot files.** These get handled in our translation management platform Crowdin. To help with the translation of our documentation, please visit https://crowdin.com/project/remix-translation. To help with our translations of Remix's UI, please visit https://crowdin.com/project/remix-ui.

## Custom theming

The documentation is built using Sphinx and the Read the Docs theme as a base. The theme has been customized using CSS overrides and JavaScript to built on top of the base theme.

**conf.py**

```py
html_js_files = [
"js/constants.js",
"js/utils.js",
"js/loaders.js",
"js/initialize.js"
]

html_css_files = ["css/fonts.css", "css/tokens.css", "css/custom.css"]
```

These `js` and `css` files are been declared to run once the initial theming has been applied.

| File (`docs/_static/`) | Description |
| ---------------------- |----------------------------------------------------------------------------------------------------- |
| **constants.js** | Contains all JavaScript constants to be used throughout the other scripts. |
| **utils.js** | Contains all utility/helper functions to be used throughout the other scripts. |
| **loaders.js** | Contains primary logic for all the loading scripts, organized by `initialize.js`. |
| **initialize.js** | Contains high-level script logic. Declares order of `loader.js` functions to be run during `onDOMContentLoaded` (immediately after the initial DOM content has been loaded) |
| **css/fonts.css** | Contains all font imports and declarations. |
| **css/tokens.css** | Contains all CSS theming variables and tokens used throughout the other CSS files. |
| **css/custom.css** | Contains all custom CSS overrides and theming. This uses existing CSS selectors from the Sphinx theming to select and override various styling. |