Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
BattlefieldDuck committed Jan 21, 2024
1 parent c58905e commit 36d956e
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 15 deletions.
4 changes: 2 additions & 2 deletions docs/docfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
"modern"
],
"globalMetadata": {
"_appName": "OpenGSQ",
"_appTitle": "OpenGSQ",
"_appName": "OpenGSQ .NET",
"_appTitle": "OpenGSQ .NET",
"_enableSearch": true,
"_appLogoPath": "images/logo.png",
"_appFaviconPath": "images/favicon.ico",
Expand Down
1 change: 0 additions & 1 deletion docs/docs/getting-started.md

This file was deleted.

7 changes: 7 additions & 0 deletions docs/docs/installation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Installation

You can easily install the OpenGSQ package via the NuGet Package Manager or by running the following command in your terminal:

```sh
dotnet add package OpenGSQ
```
1 change: 0 additions & 1 deletion docs/docs/introduction.md

This file was deleted.

10 changes: 6 additions & 4 deletions docs/docs/toc.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
- name: Introduction
href: introduction.md
- name: Getting Started
href: getting-started.md
- name: Overview
href: ../index.md

- name: Get Started
- href: installation.md
- href: usage.md
23 changes: 23 additions & 0 deletions docs/docs/usage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Usage

Source Query Protocol

```cs
using System;
using System.Threading.Tasks;
using OpenGSQ.Protocols;

class Program
{
static async Task Main()
{
// Create a new Source object
var source = new Source("45.62.160.71", 27015);

// Call the GetInfo method
var info = await source.GetInfo();

// Now you can use the 'info' object
}
}
```
22 changes: 15 additions & 7 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
---
_layout: landing
---
# Overview

# This is the **HOMEPAGE**.
OpenGSQ is an open-source game server query libraries that helps developers or admins query game servers easily and efficiently.
While non-specialists are enabled to use this library for query game servers faster through the library.

Refer to [Markdown](http://daringfireball.net/projects/markdown/) for how to write markdown files.
## OpenGSQ .NET Library

## Quick Start Notes:
[![Dotnet Package](https://github.com/opengsq/opengsq-dotnet/actions/workflows/dotnet-package.yml/badge.svg)](https://github.com/opengsq/opengsq-dotnet/actions/workflows/dotnet-package.yml)
[![GitHub license](https://img.shields.io/github/license/opengsq/opengsq-dotnet)](https://github.com/opengsq/opengsq-dotnet/blob/main/LICENSE)
[![NuGet Version](http://img.shields.io/nuget/v/OpenGSQ.svg?style=flat)](https://www.nuget.org/packages/OpenGSQ/)
![NuGet Downloads](https://img.shields.io/nuget/dt/OpenGSQ)

1. Add images to the *images* folder if the file is referencing an image.
The OpenGSQ .NET library provides a convenient way to query servers from applications written in the C# language.

## Community

Join our Discord and connect with other members to share and learn together. Send a pull request to any of our open source repositories on Github.

[![OpenGSQ Discord server Banner](https://discord.com/api/guilds/1088231927179395133/widget.png?style=banner2)](https://discord.gg/9BTG3KE9gC)

0 comments on commit 36d956e

Please sign in to comment.