Git Product home page Git Product logo

ref-docs's Introduction

Azure Reference Documentation

This repo generates and publishes documentation for azure repositories. It's currently in progress...

The project expects the collection of repos to be setup with repo init -u https://github.com/azure/ref-docs.

Current publishing steps

Validate that the docs got updates

Once the pipeline completes, validate that the ref docs are updates at the following locations:

Note

  • Sometimes because of your browser cache you won't see the update, if not, try opening it in incognito

Legacy publishing steps

Required setup

Publishing steps using a docker image (on Windows)

On the main Github ref-docs repo

  1. Make sure you update the version here to your current release version i. NOTE: this has to be done on the main Github repo.

In PowerShell

  1. docker create -t azureclidev.azurecr.io/azuresdk-javadoc
  2. docker container ls -a
  3. From the previous command, get the container id that correspons to the javadoc image you just created.
  4. docker container start {container id you just copied}

Then open a cmd terminal

  1. docker attach {container id you just copied}

Now you wil be in the docker image environment.

In the same cmd window configure these environment variables

  1. export PATH=~/bin:$PATH
  2. export JAVA_TOOL_OPTIONS='-Dfile.encoding=UTF8'
  3. export GH_TOKEN=... (put your Github public access token here without any quotes. Make sure it has full repo access).

Configure your git credentials and clone git in your docker environment

  1. git config --global user.email "{your github user email e.g. [email protected]}"
  2. git config --global user.name "{your github user id e.g. user}"
  3. git clone https://github.com/Azure/ref-docs.git
  4. cd ref-docs
  5. npm install

Manual fix required here due to historical issue in the gh-pages branch. In node_modules/gift/lib/commit.js file change the method to the following.

Commit.actor = function(line) {
      var actor, epoch, m, ref1;
      ref1 = /^.+? (.*) (\d+) .*$/.exec(line);
      if(ref1 !== undefined && ref1 !== null && ref1.length > 0) {
        m = ref1[0], actor = ref1[1], epoch = ref1[2];
      } else {
        actor="REPLACE WITH YOUR GITHUB USER NAME, IE user";
        epoch="1518471247"; //(magic number)
      }
      return [Actor.from_string(actor), new Date(1000 * +epoch)];
    };

Initial publishing calls

  1. Go back to the root of the ref-docs repo and call gulp publish:ref-docs
    • Once this call is finished executing, you should be able to see this ref-docs javadoc link updated
    • Sometimes because of your browser cache you won't see the update, if not, try opening it in incognito
  2. gulp publish:sdk
    • Once this call is finished executing, you should be able to see this azure-sdk-for-java javadoc link updated
    • Sometimes because of your browser cache you won't see the update, if not, try opening it in incognito

Go to azure/java/azure-sdk from the root of the ref-docs repo

  1. npm install

Manual fix required here due to historical issue in the gh-pages branch. In node_modules/gift/lib/commit.js file change the method to the following.

Commit.actor = function(line) {
      var actor, epoch, m, ref1;
      ref1 = /^.+? (.*) (\d+) .*$/.exec(line);
      if(ref1 !== undefined && ref1 !== null && ref1.length > 0) {
        m = ref1[0], actor = ref1[1], epoch = ref1[2];
      } else {
        actor="REPLACE WITH YOUR GITHUB USER NAME, IE user";
        epoch="1518471247"; //(magic number)
      }
      return [Actor.from_string(actor), new Date(1000 * +epoch)];
    };

Final publishing call from azure/java/azure-sdk.

  1. gulp publish
    • Once this call is finished executing, you should be able to see this azure-libraries-for-java javadoc link updated.
    • Sometimes because of your browser cache you won't see the update, if not, try opening it in incognito

ref-docs's People

Contributors

devigned avatar hovsepm avatar iscai-msft avatar jianghaolu avatar praries880 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ref-docs's Issues

Beta annotations are not inherited

If the top interface is annotated with the beta tag, while the documentation properly capture that tag as part of the interface Java doc, the methods within do not get automatically the beta tag.

If a method is properly annotated with the beta annotation then it will show as part of the java doc. This can be used as work around for now but that is a lot of annotations in the interface Java file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.