slatedocs / slate

Beautiful static documentation for your API

Home Page:https://slatedocs.github.io/slate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Slip in markdown

zeyneptokerr opened this issue · comments

First I write the python, golang, javascript codes in the right pane, then I write the explanations below. I'm told to do it this way in Markdown Syntax as well, but it still slips. Since I wrote the latest javascript code, there is no slippage in the javascript code. If I write the description under which programming language, there is no slippage in the description of that programming language. Where am I doing wrong?

Code:

# Auth Service

## Register

```shell
curl --location --request POST 'http://0.0.0.0:52000/Register' \
--header 'Content-Type: application/json' \
--data-raw '{
    "Firstname": "Zeynep",
    "Surname": "vgdf",
    "Phone": "+5435t",
    "Mail": "zeynep@fdsgfgf.com",
    "Password": "fesvsdvfdg"
}
```
```go
package main

import (
  "fmt"
  "strings"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "http://0.0.0.0:52000/Register"
  method := "POST"

  payload := strings.NewReader(`{
    "Firstname": "Zeynep",
    "Surname": "vgdf",
    "Phone": "+5435t",
    "Mail": "zeynep@fdsgfgf.com",
    "Password": "fesvsdvfdg"
}

`)

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
  req.Header.Add("Content-Type", "application/json")

  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
```
```python
import requests
import json

url = "http://0.0.0.0:52000/Register"

payload = json.dumps({
  "Firstname": "Zeynep",
  "Surname": "vgdf",
  "Phone": "+5435t",
  "Mail": "zeynep@fdsgfgf.com",
  "Password": "fesvsdvfdg"
})
headers = {
  'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)
```
```javascript
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({
  "Firstname": "Zeynep",
  "Surname": "vgdf",
  "Phone": "+5435t",
  "Mail": "zeynep@fdsgfgf.com",
  "Password": "fesvsdvfdg"
});

var requestOptions = {
  method: 'POST',
  headers: myHeaders,
  body: raw,
  redirect: 'follow'
};

fetch("http://0.0.0.0:52000/Register", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));
```

### Request Information

|Category|Value|
|--------|-----|
|Http Request|POST|
|URL|http://0.0.0.0:52000/Register|

### Input Shema for Request

|Category|Value|
|--------|-----|
|"Firstname":|"Zeynep"|
|"Surname":|"vgdf"|
|"Phone":|"+5435t"|
|"Mail":|"zeynep@fdsgfgf.com"|
|"Password":|"fesvsdvfdg"|

Ekran Resmi 2021-11-09 15 40 35

Ekran Resmi 2021-11-09 15 40 50

Ekran Resmi 2021-11-09 15 42 10

  • OS: [iOS]
  • Browser [chrome]
  • Version [93.0.4577.63 ]

What version of slate are you using? Is this a fresh installation, or are you upgrading from an older version of slate?

Your issue looks similar to the one fixed in aace071 where on moving to rouge 3.x, content was getting weirdly pushed down, and so needed to edit the stylesheet to add a new clear:none for the center column.

Slate'in hangi sürümünü kullanıyorsunuz? Bu yeni bir kurulum mu yoksa eski bir slate sürümünden mi yükseltme yapıyorsunuz?

Sorununuz aace071'de düzeltilen soruna benziyor, burada rouge 3.x'e geçerken , içerik garip bir şekilde aşağı itiliyordu ve bu nedenle clear:nonemerkez sütun için yeni bir tane eklemek üzere stil sayfasını düzenlemeniz gerekiyordu .

I am developing on the latest master from branches. Where can I see the version I am using?
Ekran Resmi 2021-11-10 10 22 20

Could you paste the contents of your gemfile?

Alternately, are you able to provide a link to the repo that has your code?

Relates to #1177