Skip to content

Commit

Permalink
Merge pull request #218 from Open-MBEE/docs
Browse files Browse the repository at this point in the history
Docs
  • Loading branch information
dlamoris authored Sep 18, 2023
2 parents 2d88930 + 23e4671 commit 3d269e3
Show file tree
Hide file tree
Showing 140 changed files with 9,647 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ PhantomJS_*
Chrome_*
test-results/
angular-mms-grunt-servers.json
venv
.vscode
76 changes: 76 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
SPHINXOPTS = -c .
SPHINXBLD = sphinx-build
SPHINXPROJ = sample
DOCDIR = doc/
DOCBACK = ../
DCXFROMDOC = ../
BLDDIR = build/doc/
STPLS = $(wildcard $(DOCDIR)*.stpl)
STPLTGTS = $(STPLS:%.stpl=%)
SRCS = $(filter-out $(DOCDIR)index.rest,$(wildcard $(DOCDIR)*.rest))
SRCSTPL = $(wildcard $(DOCDIR)*.rest.stpl)
IMGS = \
$(wildcard $(DOCDIR)*.pyg)\
$(wildcard $(DOCDIR)*.eps)\
$(wildcard $(DOCDIR)*.tikz)\
$(wildcard $(DOCDIR)*.svg)\
$(wildcard $(DOCDIR)*.uml)\
$(wildcard $(DOCDIR)*.dot)\
$(wildcard $(DOCDIR)*.eps.stpl)\
$(wildcard $(DOCDIR)*.tikz.stpl)\
$(wildcard $(DOCDIR)*.svg.stpl)\
$(wildcard $(DOCDIR)*.uml.stpl)\
$(wildcard $(DOCDIR)*.dot.stpl)
PNGS=$(subst $(DOCDIR),$(DOCDIR)_images/,\
$(patsubst %.eps,%.png,\
$(patsubst %.pyg,%.png,\
$(patsubst %.tikz,%.png,\
$(patsubst %.svg,%.png,\
$(patsubst %.uml,%.png,\
$(patsubst %.dot,%.png,\
$(patsubst %.eps.stpl,%.png,\
$(patsubst %.dot.stpl,%.png,\
$(patsubst %.tikz.stpl,%.png,\
$(patsubst %.svg.stpl,%.png,\
$(patsubst %.uml.stpl,%.png,$(IMGS)))))))))))))
DOCXS = $(subst $(DOCDIR),$(BLDDIR)docx/,$(SRCS:%.rest=%.docx))\
$(subst $(DOCDIR),$(BLDDIR)docx/,$(SRCSTPL:%.rest.stpl=%.docx))
PDFS = $(subst $(DOCDIR),$(BLDDIR)pdf/,$(SRCS:%.rest=%.pdf))\
$(subst $(DOCDIR),$(BLDDIR)pdf/,$(SRCSTPL:%.rest.stpl=%.pdf))
.PHONY: docx help Makefile docxdir pdfdir stpl index imgs
stpl: $(STPLTGTS)
%:%.stpl
@cd $(DOCDIR) && stpl "$(<F)" "$(@F)"
imgs: $(PNGS)
$(DOCDIR)_images/%.png:$(DOCDIR)%.pyg
@cd $(DOCDIR) && python $(DCXFROMDOC)dcx.py $(<F)
$(DOCDIR)_images/%.png:$(DOCDIR)%.eps
@cd $(DOCDIR) && python $(DCXFROMDOC)dcx.py $(<F)
$(DOCDIR)_images/%.png:$(DOCDIR)%.tikz
@cd $(DOCDIR) && python $(DCXFROMDOC)dcx.py $(<F)
$(DOCDIR)_images/%.png:$(DOCDIR)%.svg
@cd $(DOCDIR) && python $(DCXFROMDOC)dcx.py $(<F)
$(DOCDIR)_images/%.png:$(DOCDIR)%.uml
@cd $(DOCDIR) && python $(DCXFROMDOC)dcx.py $(<F)
$(DOCDIR)_images/%.png:$(DOCDIR)%.dot
@cd $(DOCDIR) && python $(DCXFROMDOC)dcx.py $(<F)
docxdir: ${BLDDIR}docx
pdfdir: ${BLDDIR}pdf
MKDIR_P = mkdir -p
${BLDDIR}docx:
@${MKDIR_P} ${BLDDIR}docx
${BLDDIR}pdf:
@${MKDIR_P} ${BLDDIR}pdf
index:
@cd $(DOCDIR) && python $(DCXFROMDOC)dcx.py
help:
@$(SPHINXBLD) -M help "$(DOCDIR)" "$(BLDDIR)" $(SPHINXOPTS) $(O)
@echo " docx to docx"
@echo " pdf to pdf"
#http://www.sphinx-doc.org/en/stable/usage/builders/
html dirhtml singlehtml htmlhelp qthelp applehelp devhelp epub latex text man texinfo pickle json xml pseudoxml: Makefile index stpl imgs
@$(SPHINXBLD) -M $@ "$(DOCDIR)" "$(BLDDIR)" $(SPHINXOPTS) $(O)
docx: docxdir index stpl imgs $(DOCXS)
$(BLDDIR)docx/%.docx:$(DOCDIR)%.rest
pdf: pdfdir index stpl imgs $(PDFS)
$(BLDDIR)pdf/%.pdf:$(DOCDIR)%.rest
27 changes: 27 additions & 0 deletions docs/about.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

***************
About
***************

View Editor (VE) is a web-based environment designed to interact with a
systems model. VE is a document oriented view of the model elements,
which are stored in OpenMBEE's Model Management Server (MMS). Its purpose is to provide real and
true data through the web so that users may interact with actual model
elements without having to open a modeling software (e.g. MagicDraw ).
This allows users of all levels, including non-modelers, to view or
modify live documents and values of a singular source of truth.

**View Editor (VE)** is a web-based environment for interacting with a
systems model. It provides a document oriented view of model elements,
which are stored in MMS.

View Editor provides real and true data through the web so that users
may interact with actual model elements without having to open modeling
software (e.g. MagicDraw ). This allows users of all levels, including
non-modelers, to view or modify live documents and values of a singular
source of truth.

Authors can use model data, and share content across View Editor, in
documents by **cross referencing** (see `Use Cross
References <#use-cross-references>`__ )

Loading

0 comments on commit 3d269e3

Please sign in to comment.