Skip to content

Commit

Permalink
Merge pull request #3325 from Hannah-Sten/docs
Browse files Browse the repository at this point in the history
Writerside documentation
  • Loading branch information
PHPirates authored Jan 21, 2024
2 parents 2ccc4dc + 69ce5f3 commit 151aa4c
Show file tree
Hide file tree
Showing 130 changed files with 7,091 additions and 0 deletions.
110 changes: 110 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
name: Build docs

on:
push:
branches: ["master", "docs"]
workflow_dispatch:

# Gives the workflow permissions to clone the repo and create a page deployment
permissions:
id-token: write
pages: write

env:
PRODUCT: Writerside/texify-docs
DOC_ARTIFACT: webHelpTEXIFY-DOCS2-all.zip
ALGOLIA_ARTIFACT: algolia-indexes-TEXIFY-DOCS.zip
ALGOLIA_APP_NAME: D5M21MXSWC
ALGOLIA_INDEX_NAME: TeXiFy-IDEA
ALGOLIA_KEY: ${{ secrets.ALGOLIA_KEY }}
CONFIG_JSON_PRODUCT: texify-docs
CONFIG_JSON_VERSION: master

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Build Writerside docs using Docker
uses: JetBrains/writerside-github-action@v3
- name: Upload documentation
uses: actions/upload-artifact@v3
with:
name: docs
path: |
artifacts/${{ env.DOC_ARTIFACT }}
artifacts/report.json
retention-days: 7
- name: Upload algolia-indexes
uses: actions/upload-artifact@v3
with:
name: algolia-indexes
path: artifacts/${{ env.ALGOLIA_ARTIFACT }}
retention-days: 7
test:
needs: build
runs-on: ubuntu-latest

steps:
- name: Download artifacts
uses: actions/download-artifact@v1
with:
name: docs
path: artifacts

- name: Test documentation
uses: JetBrains/writerside-checker-action@v1
with:
instance: ${{ env.INSTANCE }}


deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
# Requires the build results
needs: build
runs-on: ubuntu-latest
steps:
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: docs
- name: Unzip artifact
uses: montudor/action-zip@v1
with:
args: unzip -qq ${{ env.DOC_ARTIFACT }} -d dir
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: dir
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1

publish-indexes:
needs: build
runs-on: ubuntu-latest
container:
image: registry.jetbrains.team/p/writerside/builder/algolia-publisher:2.0.32-2

steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: algolia-indexes
- uses: montudor/action-zip@v1
with:
args: unzip -qq ${{ env.ALGOLIA_ARTIFACT }} -d algolia-indexes
- run: |
env "algolia-key=${{env.ALGOLIA_KEY}}" java -jar /opt/builder/help-publication-agent.jar \
update-index \
--application-name ${{env.ALGOLIA_APP_NAME}} \
--index-name ${{env.ALGOLIA_INDEX_NAME}} \
--product ${{env.CONFIG_JSON_PRODUCT}} \
--version ${{env.CONFIG_JSON_VERSION}} \
--index-directory algolia-indexes/ \
2>&1 | tee algolia-update-index-log.txt
2 changes: 2 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions Release-checklist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
- [ ] Create branch bx.x.x
- [ ] Run 'Usage of IntelliJ API not available in older IDEs' and 'Stateful extension' inspection (ctrl+alt+shift+i)
- [ ] Increase stub version in LatexParserDefinition
- [ ] Re-include Sumatra dlls in build.gradle.kts to enable forward search
- [ ] Run ctan.py

- [ ] Add welcome text to Changelog.md
- [ ] Update welcome text
- [ ] Update version in gradle.properties
- [ ] run patchChangelog (ideally this would be done for the publishPlugin task, but somehow that produces an 'Unreleased' title instead of 0.x.x)
- [ ] Delete alpha versions from changelog
- [ ] runIDE and check the changelog is formatted correctly
- [ ] Run publishPlugin
- [ ] Merge PR
- [ ] buildPlugin and release on GitHub, tag version: v0.x.x and release title: Beta x.x.x
- [ ] Close the milestone
- [ ] Update MiKTeX Docker image
- [ ] Check performance: indexing texlive full should take around one minute, inspections on a 10k line file should take around 10 seconds, pressing enter in such a file should react within a second.
6 changes: 6 additions & 0 deletions Writerside/c.list
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE categories
SYSTEM "https://resources.jetbrains.com/writerside/1.0/categories.dtd">
<categories>
<category id="wrs" name="Writerside documentation" order="1"/>
</categories>
13 changes: 13 additions & 0 deletions Writerside/cfg/buildprofiles.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<buildprofiles xsi:noNamespaceSchemaLocation="https://helpserver.labs.jb.gg/help/schemas/mvp/build-profiles.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<variables>
<algolia-id>D5M21MXSWC</algolia-id>
<algolia-index>TeXiFy-IDEA</algolia-index>
<algolia-api-key>24051865ac9a05c6332f3e3c04468ea5</algolia-api-key>
<config-search-scopes-provider>https://www.jetbrains.com/</config-search-scopes-provider>

<enable-browser-edits>true</enable-browser-edits>
<browser-edits-url>https://github.com/Hannah-Sten/TeXiFy-IDEA/edit/master/Writerside/</browser-edits-url>
</variables>
<build-profile instance="texify-docs"/>
</buildprofiles>
12 changes: 12 additions & 0 deletions Writerside/cfg/platforms.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<platforms>
<platform id="primary">
<use-keymaps>
primary_Windows_Linux
</use-keymaps>
<use-keymaps>
primary_macOS
</use-keymaps>
<src>keymap.xml</src>
</platform>
</platforms>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Writerside/images/bibtex/bibtex-folding.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Writerside/images/edit-page.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Writerside/images/editing/env-docs.png
Binary file added Writerside/images/editing/env-docs_dark.png
Binary file added Writerside/images/editing/environment-switch.png
Binary file added Writerside/images/editing/font-style.png
Binary file added Writerside/images/editing/font-style_dark.png
Binary file added Writerside/images/editing/inline-command.gif
Binary file added Writerside/images/editing/macro.png
Binary file added Writerside/images/editing/move-argument.gif
Binary file added Writerside/images/editing/newfile.png
Binary file added Writerside/images/editing/newfile_dark.png
Binary file added Writerside/images/editing/package-import.gif
Binary file added Writerside/images/editing/paste-image-wizard.png
Binary file added Writerside/images/editing/paste-image.mp4
Binary file not shown.
Binary file added Writerside/images/editing/rename-navigate.gif
Binary file added Writerside/images/editing/soft-wraps.png
Binary file added Writerside/images/editing/soft-wraps_dark.png
Binary file added Writerside/images/editing/surround.png
Binary file added Writerside/images/editing/surround_dark.png
Binary file added Writerside/images/editing/texdoc.png
Binary file added Writerside/images/editing/texdoc_dark.png
Binary file added Writerside/images/inspections/grazie.png
Binary file added Writerside/images/inspections/suppression.png
Binary file added Writerside/images/install.png
Binary file added Writerside/images/install_dark.png
Binary file added Writerside/images/project-configuration/sdk.png
Binary file added Writerside/images/reading/color-gutter.png
Binary file added Writerside/images/reading/line-markers.png
Binary file added Writerside/images/running/autocompile.gif
Binary file added Writerside/images/running/built-in-pdf-viewer.gif
Binary file added Writerside/images/running/change-compiler.gif
Binary file added Writerside/images/running/log-tab.png
Binary file added Writerside/images/settings/folding.png
Binary file added Writerside/images/settings/language-injection.png
Binary file added Writerside/images/settings/set-up-sdk.png
Binary file added Writerside/images/tools/citefromremote.gif
Binary file added Writerside/images/tools/insert-graphic-wizard.gif
Binary file added Writerside/images/tools/insert-table-wizard.gif
Binary file added Writerside/images/tools/insert-table-wizard.png
Binary file added Writerside/images/tools/symbols-tool-window.png
15 changes: 15 additions & 0 deletions Writerside/keymap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<Keymap id="texify-docs">
<Action id="$Reformat">
<Shortcut layout="primary_Windows_Linux">Ctrl+Alt+L</Shortcut>
<Shortcut layout="primary_macOS">Meta+Alt+L</Shortcut>
</Action>
<Action id="$Commit">
<Shortcut layout="primary_Windows_Linux">Ctrl+K</Shortcut>
<Shortcut layout="primary_macOS">Meta+K</Shortcut>
</Action>
<Action id="$Pull">
<Shortcut layout="primary_Windows_Linux">Ctrl+T</Shortcut>
<Shortcut layout="primary_macOS">Meta+T</Shortcut>
</Action>
</Keymap>
8 changes: 8 additions & 0 deletions Writerside/project.ihp
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ihp SYSTEM "https://resources.jetbrains.com/writerside/1.0/ihp.dtd">

<ihp version="2.0">
<topics dir="topics"/>
<images dir="images" web-path="TeXiFy-IDEA"/>
<instance src="texify-docs.tree" web-path="/texify-docs/" />
</ihp>
52 changes: 52 additions & 0 deletions Writerside/texify-docs.tree
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE instance-profile
SYSTEM "https://resources.jetbrains.com/writerside/1.0/product-profile.dtd">

<instance-profile id="texify-docs"
name="TeXiFy-IDEA documentation"
start-page="Welcome.topic">

<toc-element topic="Welcome.topic"/>
<toc-element topic="Quick-start-guide.md"/>
<toc-element topic="Installation-guide.md"/>
<toc-element topic="Installing-pre-release-builds.md"/>
<toc-element topic="Project-configuration.md"/>
<toc-element topic="Editing-a-LaTeX-file.md">
<toc-element topic="Code-completion.md"/>
<toc-element topic="Code-formatting.md"/>
<toc-element topic="Code-navigation.md"/>
</toc-element>
<toc-element topic="Running-a-LaTeX-file.md">
<toc-element topic="Run-configuration-settings.md"/>
<toc-element topic="PDF-viewers.md"/>
<toc-element topic="External-tools.md"/>
</toc-element>
<toc-element topic="BibTeX.md"/>
<toc-element toc-title="Settings">
<toc-element topic="TeXiFy-settings.md"/>
<toc-element topic="Editor.md">
<toc-element topic="General.md"/>
<toc-element topic="Code-Style.md"/>
</toc-element>
</toc-element>
<toc-element topic="Tools.md">
<toc-element topic="Tool-Windows.md"/>
</toc-element>
<toc-element topic="Inspections.md">
<toc-element topic="BibTeX-Inspections.md"/>
<toc-element topic="Typesetting-issues.md"/>
<toc-element topic="Spacing.md"/>
<toc-element topic="Code-style-issues.md"/>
<toc-element topic="Probable-bugs.md"/>
<toc-element topic="Packages.md"/>
<toc-element topic="Redundant-code.md"/>
<toc-element topic="Discouraged-or-obsolete-code.md"/>
<toc-element topic="Intentions.md"/>
</toc-element>
<toc-element toc-title="Reference">
<toc-element topic="Errors-and-warnings.md"/>
</toc-element>
<toc-element topic="Contributing-to-the-documentation.md"/>
<toc-element topic="Contributing-to-the-source-code.md"/>
<toc-element topic="Troubleshooting.md"/>
</instance-profile>
29 changes: 29 additions & 0 deletions Writerside/topics/BibTeX-Inspections.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# BibTeX Inspections

## Duplicate ID

You cannot have two bibtex entries with the same id.

## Missing bibliography style

When you include a bibliography, you should also define a bibliography style, for example `\bibliographystyle{plain}`.

## Duplicate bibliography style commands

You should only have one `\bibliographystyle` command.

## Same bibliography is included multiple times

It is not useful to include the same bibliography in the same document multiple times.

## Bib entry is not cited

_Since b0.7.3_

This inspection detects entries in bibliographies that are not cited in the main document.
It greys out the identifier of the entry, and provides a quick fix to safe delete this entry.
When using the safe deletion, TeXiFy will also search for cites that appear in comments, and you will be warned if any are found, see Figure 1.

**View of the safe delete that found a usage in a comment.**

![bibtex-safe-delete-entry](bibtex-safe-delete-entry.png)
Loading

0 comments on commit 151aa4c

Please sign in to comment.