diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 71cc417c..9b55543c 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -12,6 +12,7 @@ A clear and concise description of what the bug is. **To Reproduce** Steps to reproduce the behavior: + 1. Go to '...' 2. Click on '....' 3. Scroll down to '....' @@ -24,8 +25,9 @@ A clear and concise description of what you expected to happen. If applicable, add screenshots to help explain your problem. **Desktop (please complete the following information):** - - OS: [e.g. Arch Linux on Wayland] - - Version [e.g. 1.2.2] + +- OS: [e.g. Arch Linux on Wayland] +- Version [e.g. 1.2.2] **Additional context** Add any other context about the problem here. diff --git a/README.md b/README.md index c955846d..dea074ff 100644 --- a/README.md +++ b/README.md @@ -1,25 +1,40 @@ # Bussin Web X An alternative to the World Wide Web (`http(s)://`), with: -- its own **custom browser** written in Rust with [GTK](https://gtk.org/), + +- its own **custom browser** written in [Rust](https://www.rust-lang.org/) with [GTK](https://gtk.org/), - custom HTML, CSS and ***Lua*** engine (yup, **no javascript! 🎉**), - custom **DNS** allowing Top-Level domains such as `rizz`, `sigma`, `lol`, `dev`, etc, - and **search engine** at `buss://dingle.it`. ![Preview of buss://register.it, the frontend for registering domains](.github_assets/image.png) -# File structure -- `/napture` - The source code for the **browser** Bussin Napture, used to view buss:// sites. -- `/dns` - The source code for the **DNS** (Domain Name System), used for the API at `https://api.buss.lol` -- `/dingle` - The source code for the official **search engine** (API) of Web X. For the frontend, check [dingle frontend repo](https://github.com/face-hh/dingle-frontend) +## File structure + +- `/docs` - The source MarkDown for the **official documentation website**, currently hosted at [https://facedev.gitbook.io/bussin-web-x-how-to-make-a-website](https://facedev.gitbook.io/bussin-web-x-how-to-make-a-website). Has both user manuals for the official browser & guides and docs for developers who want to create websites for Web X. +- `/napture` - The source code for the **browser**, "Bussin Napture", used to view buss:// sites. +- `/dns` - The source code for the **DNS** (Domain Name System), used for the API at `https://api.buss.lol`. +- `/dingle` - The source code for the official **search engine** of Web X. This is for the API only, for the frontend go check the [Dingle frontend repo](https://github.com/face-hh/dingle-frontend) - [registrar](https://github.com/face-hh/webx-registrar) - The source code for `buss://register.it`, frontend for `https://api.buss.lol` made for Bussin Web X. This can also serve as an example for how buss:// sites are made. -# Download and Install -## Arch Linux -- `yay -S napture`, it's available on AUR. -## Nix[OS] +## Documentation + +> [!NOTE] +> Note: This is just a summary, full docs can be found at the [WebX official documentation](https://facedev.gitbook.io/bussin-web-x-how-to-make-a-website) + +### Download and Install + +#### Install for Linux + +- For now, you have to download [Rust](https://www.rust-lang.org/tools/install). Then, you just need to open `install-linux.sh` in the `napture` folder as an executable (if you can't execute it, first do `sudo chmod +x ./install-linux.sh`, then you should be able to install). + +#### Install for Arch Linux + +- Run `yay -S napture`, it's available on AUR. + +#### Install for Nix[OS] -**Flakes**: The repository provides a flake which exposes an overlay providing the webx package, so you could just add the input in your flake.nix file +- **Flakes**: The repository provides a flake which exposes an overlay providing the webx package, so you could just add the input in your flake.nix file ```nix { @@ -51,20 +66,24 @@ home.packages = with pkgs; [ Then you could just launch it using `webx` in your terminal. -## Linux -- For now, you have to download [Rust](https://www.rust-lang.org/tools/install). Then, you just need to open `install-linux.sh` in the `napture` folder as an executable (if you can't execute it, first do `sudo chmod +x ./install-linux.sh`, then you should be able to install). -## macOS +#### Install for macOS + - For now, you have to download [Rust](https://www.rust-lang.org/tools/install) and [Homebrew](https://brew.sh). Then, you just need to open `install-macos.sh` in the `napture` folder as an executable (if you can't execute it, first do `chmod +x ./install-macos.sh`, then you should be able to install). -## Windows + +#### Install for Windows + - Install the executable from the release tab. It's a self-extractor with WinRAR because it has a lot of DLLs. -# Download and Compile -## Linux -Install [Rust](https://www.rust-lang.org/tools/install) if you haven't already. -It should work by default, but if you're getting errors such as "missing PC files", you should Google it. Most likely you just have to install a library +### Download and Compile + +#### Compile for Linux + +- Install [Rust](https://www.rust-lang.org/tools/install) if you haven't already. It should work by default, but if you're getting errors such as "missing PC files", you should Google it. Most likely you just have to install a library + +#### Compile for Windows + +> Welcome to Gaming OS 🙂 -## Windows -Welcome to Gaming OS 🙂 1. Download [Rust](https://www.rust-lang.org/tools/install) 2. Download GNU target: `rustup toolchain install stable-gnu && rustup default stable-gnu` 3. Download [MSYS32](https://www.msys2.org/) @@ -75,19 +94,26 @@ Welcome to Gaming OS 🙂 8. Select `Path` -> Click on `Edit` -> Add the following three entries: `C:\msys64\mingw64\include`, `C:\msys64\mingw64\bin`, and `C:\msys64\mingw64\lib`. 9. Open a terminal in the folder with `napture/`, run `cargo run`. -## MacOS (Apple Silicon) +#### Compile for macOS (Apple Silicon) + 1. Install [Rust](https://www.rust-lang.org/tools/install) 2. Install [Homebrew](https://brew.sh/) -3. Install PKG_CONFIG_PATH and ensure it's set in your path +3. Clone the repo + +```bash +git clone https://github.com/face-hh/webx +``` + +4. Install PKG_CONFIG_PATH and ensure it's set in your path ```bash brew install pkg-config which pkg-config ``` -3.1. Should return something like `/opt/homebrew/bin/pkg-config`. If it doesn't, add it to your path. +4.1. Should return something like `/opt/homebrew/bin/pkg-config`. If it doesn't, add it to your path. -4. Install GTK and Necessary Libraries +5. Install GTK and the necessary Libraries ```bash brew install glib @@ -109,7 +135,7 @@ brew --prefix libadwaita brew --prefix lua@5.4 ``` -4.1 Validate if the libraries are installed adequately and set in PKG_CONFIG_PATH, command below should return the path to the libraries without any errors. +5.1 Validate if the libraries are installed adequately and set in PKG_CONFIG_PATH, command below should return the path to the libraries without any errors. ```bash pkg-config --libs --cflags glib-2.0 @@ -122,7 +148,7 @@ pkg-config --libs --cflags libadwaita-1 pkg-config --libs --cflags lua-5.4 ``` -5. Run `cargo run` in the `napture/` directory. +6. Run `cargo run` in the `napture/` directory. ```bash cd napture @@ -132,10 +158,12 @@ cargo build cargo run ``` -# Register website -Please follow [How to code a Buss site](https://facedev.gitbook.io/bussin-web-x-how-to-make-a-website/) for a better visual guide. +## Website registering + +> [!NOTE] +> Again: This is just a summary, full docs can be found at the [WebX official documentation](https://facedev.gitbook.io/bussin-web-x-how-to-make-a-website). **Please head to the docs for a better and more visual guide.** -So you wish to publish a website to Web X? Great! Let's go through the rules: +So, you wish to publish a website to Web X? Great! Let's go through the rules: 1. If your website contains Not Safe For Work material of any kind, it will be removed. 2. If your website contains frequent racial slurs, references made in bad faith to tragic events, racism towards other races, or anything of that kind, it will be removed. @@ -148,7 +176,7 @@ So you wish to publish a website to Web X? Great! Let's go through the rules: 9. If your website is involved in fradulent activities, scams, or deceptive practices, it will be removed. 10. If your website contains content that encourages harmful behavior, including self-harm, suicide, substance abuse, or dangerous challanges, it will be removed. -By publishing content to this platform ("Bussin Napture"/"Bussin Web X"), you agree to comply with all rules and regulations set forth by the administrators. The administrators reserve the right to interpret and enforce these rules at their discretion. To report websites that are not following the listed rules, please contact `FaceDev` on either [Twitter](https://twitter.com/facedevstuff) or [Discord](https://discord.gg/cNwWvdWj42). +**By publishing content to this platform ("Bussin Napture" / "Bussin Web X"), you agree to comply with all rules and regulations set forth by the administrators. The administrators reserve the right to interpret and enforce these rules at their discretion. To report websites that are not following the listed rules, please contact `FaceDev` on either [Twitter](https://twitter.com/facedevstuff) or [Discord](https://discord.gg/cNwWvdWj42).** Now, to register a website, navigate to `buss://register.it` **through Bussin Napture**. @@ -156,31 +184,42 @@ You will see this interface. ![Preview of buss://register.it, the frontend for registering domains](.github_assets/image.png) What you need is the **Publish** section. + - for the domain name, choose whatever you want. (example: `duckduckgo`) - for the TLD, choose one displayed above the `Result will appear...` label. (example: `rizz`) - for the IP, you can either use: - - an IP that serves `/index.html` on port 80 - - a GitHub repository that has `index.html`, **outside any folder**. (example: [registrar](https://github.com/face-hh/webx-registrar)), ***with the `main` default branch***. + - an IP that serves `/index.html` on port 80 + - a GitHub repository that has `index.html`, **outside any folder**. (example: [registrar](https://github.com/face-hh/webx-registrar)), ***with the `main` default branch***. + +Don't worry! The IP doesn't have to be valid, allowing you to register a domain and save it for later! -Don't worry! The IP doesn't have to be valid, and you can save the domain for later! +**WARNING**: After creating the domain, you'll be shown a **secret key**. Please make sure to save it as you will need it to Update/Delete your domain. With your secret key you can, for example, edit the IP of your website. -**WARNING**: After creating the domain, you'll be shown a **secret key**. Please make sure to save it as you will need it to Update/Delete your domain. +## Running a website locally -# Run website locally Bussin Napture fetches `index.html` at whatever path you give it. For example, if you enter `http://localhost:3000`, Napture will fetch `http://localhost:3000/index.html`. From the index.html, if you have further `` or `