Skip to content

Commit

Permalink
Merge pull request #19 from stackb/feat/page
Browse files Browse the repository at this point in the history
Add markdown document API
  • Loading branch information
pcj authored Jul 21, 2023
2 parents 9c156ab + fc6111e commit c1a6156
Show file tree
Hide file tree
Showing 5 changed files with 769 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ update:
$(BAZEL) run //build/stack/protobuf/package/v1alpha1:v1alpha1_go_compiled_sources.update
$(BAZEL) run //build/stack/protobuf/package/v1alpha2:v1alpha2_go_compiled_sources.update
$(BAZEL) run //build/stack/syntax_highlight/v1beta1:syntax_highlight_go_compiled_sources.update
$(BAZEL) run //build/stack/markdown/v1beta1:v1beta1_go_compiled_sources.update
26 changes: 26 additions & 0 deletions build/stack/markdown/v1beta1/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
load("@rules_proto//proto:defs.bzl", "proto_library")
load("@build_stack_rules_proto//rules:proto_compiled_sources.bzl", "proto_compiled_sources")

proto_library(
name = "v1beta1_proto",
srcs = ["document.proto"],
visibility = ["//visibility:public"],
)

proto_compiled_sources(
name = "v1beta1_go_compiled_sources",
srcs = [
"document.pb.go",
"document_grpc.pb.go",
],
output_mappings = [
"document.pb.go=github.com/stackb/apis/build/stack/markdown/v1beta1/document.pb.go",
"document_grpc.pb.go=github.com/stackb/apis/build/stack/markdown/v1beta1/document_grpc.pb.go",
],
plugins = [
"@build_stack_rules_proto//plugin/golang/protobuf:protoc-gen-go",
"@build_stack_rules_proto//plugin/grpc/grpc-go:protoc-gen-go-grpc",
],
proto = "v1beta1_proto",
visibility = ["//visibility:public"],
)
Loading

0 comments on commit c1a6156

Please sign in to comment.