Skip to content

Commit

Permalink
fix(docs): move docs away from root folder to prevent errors, update …
Browse files Browse the repository at this point in the history
…scripts (#458)
  • Loading branch information
Michael-Ixo authored Nov 28, 2024
1 parent 0c69a80 commit 7e1e0f9
Show file tree
Hide file tree
Showing 20 changed files with 4,201 additions and 1,969 deletions.
10 changes: 7 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,17 @@ FROM golang:${GO_VERSION}-alpine3.20 AS builder
# TODO: maybe extract below args to where called in cicd?
# git log -1 --format='%H'
ARG GIT_VERSION="v4.0.0"
ARG GIT_COMMIT="cbfe5c259cad5b192e6b6353879e80b1e8f2abd8"
ARG GIT_COMMIT="0c69a80ac7daaf633381744ca5d4f02302aa16df"

ENV PACKAGES="ca-certificates build-base binutils-gold curl make git libc-dev bash file gcc linux-headers eudev-dev"
RUN apk add --no-cache $PACKAGES

# Download go dependencies
WORKDIR /ixo
COPY go.mod go.sum ./
RUN go mod download
RUN --mount=type=cache,target=/root/.cache/go-build \
--mount=type=cache,target=/root/go/pkg/mod \
go mod download

# RUN ARCH=$(uname -m)
# Cosmwasm - Download correct libwasmvm version
Expand All @@ -35,7 +37,9 @@ RUN ARCH=x86_64 && WASMVM_VERSION=$(go list -m github.com/CosmWasm/wasmvm | sed
COPY . .

# Build ixod binary
RUN GOWORK=off go build \
RUN --mount=type=cache,target=/root/.cache/go-build \
--mount=type=cache,target=/root/go/pkg/mod \
GOWORK=off go build \
-mod=readonly \
-tags "netgo,ledger,muslc" \
-ldflags \
Expand Down
2 changes: 1 addition & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ import (
v2 "github.com/ixofoundation/ixo-blockchain/v4/app/upgrades/v2"
v3 "github.com/ixofoundation/ixo-blockchain/v4/app/upgrades/v3"
v4 "github.com/ixofoundation/ixo-blockchain/v4/app/upgrades/v4"
"github.com/ixofoundation/ixo-blockchain/v4/docs"
"github.com/ixofoundation/ixo-blockchain/v4/lib/docs"
"github.com/ixofoundation/ixo-blockchain/v4/lib/ixo"
"github.com/spf13/cast"
)
Expand Down
35 changes: 27 additions & 8 deletions docs/config.json → lib/docs/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,6 @@
}
}
},
{
"url": "./tmp-swagger-gen/cosmos/mint/v1beta1/query.swagger.json",
"operationIds": {
"rename": {
"Params": "MintParams"
}
}
},
{
"url": "./tmp-swagger-gen/cosmos/params/v1beta1/query.swagger.json",
"operationIds": {
Expand Down Expand Up @@ -241,6 +233,33 @@
{
"url": "./tmp-swagger-gen/ixo/iid/v1beta1/query.swagger.json"
},
{
"url": "./tmp-swagger-gen/ixo/epochs/v1beta1/query.swagger.json"
},
{
"url": "./tmp-swagger-gen/ixo/liquidstake/v1beta1/query.swagger.json",
"operationIds": {
"rename": {
"Params": "IXOLiquidStakeParams"
}
}
},
{
"url": "./tmp-swagger-gen/ixo/mint/v1beta1/query.swagger.json",
"operationIds": {
"rename": {
"Params": "IXOMintParams"
}
}
},
{
"url": "./tmp-swagger-gen/ixo/smartaccount/v1beta1/query.swagger.json",
"operationIds": {
"rename": {
"Params": "IXOSmartAccountParams"
}
}
},
{
"url": "./tmp-swagger-gen/ixo/token/v1beta1/query.swagger.json",
"operationIds": {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 7e1e0f9

Please sign in to comment.