Skip to content
Open
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
*.o
*.a
*.so
website

# Folders
.vscode
Expand All @@ -24,7 +25,7 @@ _cgo_export.*
_testmain.go

*.exe
*.exe~
*~
*.zip
*.test
*.prof
24 changes: 15 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,33 @@
# website
beego website
# Website

Beego Website

### Setup
:warning: ARCHIVED REPO :warning:

Please note that this repo has been replaced by [beego/beeweb](https://github.com/beego/beeweb) (also replaced by [beego/beego-doc](https://github.com/beego/beego-doc)) - Please DO NOT open any new Issue / PR on this repo.


## Setup

1. Get source code:

```
go get github.com/beego/website
git clone https://github.com/beego/website.git
cd website
```

2. Get `beedoc` and `beeblog` to build contents:

```
cd $GOPATH/src/github.com/beego/website
git clone https://github.com/beego/beedoc
git clone https://github.com/beego/beeblog
git clone https://github.com/beego/beedoc.git
git clone https://github.com/beego/beeblog.git
go get
```

3. Compile:

```
go build main.go
go build
```

run `website` and visit `http://localhost:8082`
run `website` and visit [`http://localhost:8082`](http://localhost:8082)
31 changes: 31 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
module github.com/beego/website

go 1.22.2

require (
github.com/astaxie/beego v1.12.3
github.com/russross/blackfriday v1.6.0
github.com/smartystreets/goconvey v1.8.1
)

require (
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.1.1 // indirect
github.com/golang/protobuf v1.4.2 // indirect
github.com/gopherjs/gopherjs v1.17.2 // indirect
github.com/hashicorp/golang-lru v0.5.4 // indirect
github.com/jtolds/gls v4.20.0+incompatible // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
github.com/prometheus/client_golang v1.7.0 // indirect
github.com/prometheus/client_model v0.2.0 // indirect
github.com/prometheus/common v0.10.0 // indirect
github.com/prometheus/procfs v0.1.3 // indirect
github.com/shiena/ansicolor v0.0.0-20151119151921-a422bbe96644 // indirect
github.com/smarty/assertions v1.15.0 // indirect
golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97 // indirect
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110 // indirect
golang.org/x/sys v0.6.0 // indirect
golang.org/x/text v0.3.3 // indirect
google.golang.org/protobuf v1.23.0 // indirect
gopkg.in/yaml.v2 v2.2.8 // indirect
)
197 changes: 197 additions & 0 deletions go.sum

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions views/blog.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
{{template "header" .}}

<div class="blog-wrapper">
<article class="markdown">
<div id="doc-content">
{{ .BlogContent }}
</div>
</article>
</div>

{{template "footer" .}}
3 changes: 0 additions & 3 deletions views/docs.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{{template "header" .}}
<div class="main-wrapper">
<aside class="aside-container">
<ul>
Expand Down Expand Up @@ -51,5 +50,3 @@ <h4><a href="{{.URL}}" class="{{.I18n}}">{{$.I18n.Tr .I18n}}</a></h4>
</section>

</div>

{{template "footer" .}}
3 changes: 0 additions & 3 deletions views/products.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{{template "header" .}}
<div class="main-wrapper">

<section class="footloose-container">
Expand Down Expand Up @@ -75,5 +74,3 @@ <h6 class="card-title">个体经营者的进销存统计系统</h6>
</section>

</div>

{{template "footer" .}}